Skip to content

ZF2 Console Route error when loading DoctrineORMModule #330

@3m0

Description

@3m0

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:

http://pastebin.com/Dmg8g9Sv

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions