Symfony2 allowed memory exhausted when calling php app/console doctrine:schema:update
symfony
Solution
Do:
php -d memory_limit=200M app/console doctrine:schema:update --dump-sql
200M or higher
Problem
I have a big problem... I want to update the schema of my database and I have a problem. When I a running this script: ``` php app/console doctrine:schema:update --dump-sql ``` I have this error: ``` Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /Applications/MAMP/htdocs/myApp/vendor/doctrine/lib/Doctrine/ORM/Tools/SchemaTool.php on line 509 ``` I have tried to increase memory_limit in php.ini but nothing works. I have ran the `php app/console cache:clear` but it does nothing. Still the same problem... Please help... I can't do nothing...