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