mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-95: Doctrine\ORM\Tools\Cli->_initializeEntityManager() looks for config option in wrong args array #119
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 2, 2009).
Jira issue originally created by user kuja:
I am currently trying to create a wrapper to the Doctrine\ORM\Tools\Cli class for my own project. In my wrapper I wanted to automatically specify a --config=PATH option (realizing I could do so as mentioned in the documentation: http://www.doctrine-project.org/documentation/manual/2_0/en/tools#the-doctrine-cli:configuration).
However, at any attempt I made Cli would constantly use the default path ./cli-config.php, and well... after a bit of investigating I noticed in Cli->run(), there is a call to Cli->*initializeEntityManager() which also happens to be the method that determines the config path. However, after some snooping around I noticed that $args['config'](the array *initializeEntityManager%28%29 is trying to get the config path from) is not actually the right array. The config key seems to be in the $taskArgs array.
To conclude, either Cli->_initializeEntityManager() is using the wrong argument or the arguments are not being processed correctly.
My overall experience with Doctrine 2 has been great, keep up the awesome work ;)
-Matt
@doctrinebot commented on GitHub (Nov 3, 2009):
Comment created by kuja:
This was fixed in svn by jwage.
Thanks!
@doctrinebot commented on GitHub (Nov 3, 2009):
Issue was closed with resolution "Fixed"