/ symfony2

Doctrine 2 + annotations and opcache

I can't describe how much I hate annotations in PHP. Rather than annotations, I would take yml over them anytime. Especially since opcode cache doesn't save them, making Doctrine freak out.

Yet there are times when one has to be subjected to the annotation atrocity so here's a fix that needs to be added to php.ini (or similar ini):


Good luck!

Doctrine 2 + annotations and opcache
Share this