Symfony, Doctrine and "Proxy Classes are always regenerating"
It caused by option in app/config/config.yml
which looks like:
doctrine: orm: auto_generate_proxy_classes: %kernel.debug%
All commands by default have debug mode enabled so auto_generate_proxy_classes
is set to true
.to disable kernel.debug in commands you should use --no-debug
option.
so at the end command should looks like that:
php app/console doctrine:ensure-production-settings --no-debug --env=prod
Are you sure you are using Google properly? :)
Get a look here. It seems it is due to a debug mode. Try with:
app/console doctrine:ensure-production-settings --no-debug