i'm trying set symfony cmf doctrine phpcr-odm. unfortunately, whenever want save data sonata admin database, following exception:
compile error: doctrine\common\proxy\abstractproxyfactory::getproxydefinition(): failed opening required '/applications/xampp/xamppfiles/htdocs/app/cache/dev/doctrine/phpcrproxies/__cg__doctrineodmphpcrdocumentgeneric.php' i have initialized repository multiple times , deleted cache too, nothing helped.
does have idea, why file missing? how file being generated?
i found out problem was.
in config file of symfony2, had add following:
doctrine_phpcr: odm: auto_generate_proxy_classes: "%kernel.debug%" for production environment,you have call php app/console cache:warmup generate proxy classes documents in advance.
it should done minimize work in production environment.
Comments
Post a Comment