-
-
Notifications
You must be signed in to change notification settings - Fork 225
Closed
Labels
Description
Whenever I setup a console route, when I run it I get an error related to the default connection to the database, even if my action does not use a database connection at all. If I run the same action from outside the console, everything runs fine, the problem only occurs when the route is run from console. An excerpt from the stack trace (the last part) can be found here:
I'm using Zend Framework 2.3 with Doctrine ORM Module 0.8.0.
I've also noticed that when I comment line 63 from the file doctrine/doctrine-orm-module/src/DoctrineORMModule/Module.php like this:
//$events->getSharedManager()->attach('doctrine', 'loadCli.post', array($this, 'initializeConsole'));
The problem doesn't occur and everything seems to work.