Doctrine 2 hangs when enabling APC cache on Ubuntu

It is necessary to add a flag to the apc.ini file in /etc/php5/cli/apc.ini


extension=apc.so
apc.enable_cli=1

http://symfony2.ylly.fr/doctrine-2-hangs-when-enabling-apc-cache-on-ubuntu-dantleech/