3

I have cleared my symfony2 application and now cannot run the application because cannot generate proxies for entities from the command line while a few have actually been generated by default.

I have tried to run the command below which usually did the trick in earlier versions of symfony/ doctrine:

php bin/console doctrine:ensure-production-settings --no-debug --env=prod 

But this time I only get the following response:

Query Cache uses a non-persistent cache driver, Doctrine\Common\Cache\ArrayCache. 

Anyone know how to solve this?

1 Answer 1

10

Try

php bin/console cache:warmup --env=prod --no-debug 

How ever the command you are trying

php bin/console doctrine:ensure-production-settings --no-debug --env=prod 

is not for generating proxies, but for verifying that Doctrine is properly configured for a production environment.

And to actually to make sure you are ready for production , you need to use one of the cache drivers mentioned here .

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.