Commit 37824abf authored by jwage's avatar jwage

[2.0] Fixed incorrectly used variable for cli config

parent d8bf0401
...@@ -325,19 +325,19 @@ class Cli ...@@ -325,19 +325,19 @@ class Cli
private function _initializeEntityManager(array $args, array &$taskArgs) private function _initializeEntityManager(array $args, array &$taskArgs)
{ {
// Initialize EntityManager // Initialize EntityManager
$configFile = ( ! isset($args['config'])) ? './cli-config.php' : $args['config']; $configFile = ( ! isset($taskArgs['config'])) ? './cli-config.php' : $taskArgs['config'];
if (file_exists($configFile)) { if (file_exists($configFile)) {
// Including configuration file // Including configuration file
require $configFile; require $configFile;
// Check existance of EntityManager // Check existance of EntityManager
if ( ! isset($em)) { if ( ! isset($em)) {
throw new \Doctrine\Common\DoctrineException( throw new \Doctrine\Common\DoctrineException(
'No EntityManager created in configuration' 'No EntityManager created in configuration'
); );
} }
// Check for gloal argument options here // Check for gloal argument options here
if (isset($globalArguments)) { if (isset($globalArguments)) {
// Merge arguments. Values specified via the CLI take preference. // Merge arguments. Values specified via the CLI take preference.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment