From 5d83a66d8da927cb71d1550bb51466a6501f13f8 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 1 Jan 2014 14:52:46 +0100 Subject: [PATCH] Fix configuration via the console helper provided by Doctrine DBAL The helper provided by Doctrine DBAL is named `connection`, not `db`. --- .../DBAL/Migrations/Tools/Console/Command/AbstractCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/AbstractCommand.php b/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/AbstractCommand.php index c65f44d6c2..97b976ee65 100644 --- a/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/AbstractCommand.php +++ b/lib/Doctrine/DBAL/Migrations/Tools/Console/Command/AbstractCommand.php @@ -78,8 +78,8 @@ protected function getMigrationConfiguration(InputInterface $input, OutputInterf return $output->writeln($message); }); - if ($this->getApplication()->getHelperSet()->has('db')) { - $conn = $this->getHelper('db')->getConnection(); + if ($this->getApplication()->getHelperSet()->has('connection')) { + $conn = $this->getHelper('connection')->getConnection(); } elseif ($input->getOption('db-configuration')) { if ( ! file_exists($input->getOption('db-configuration'))) { throw new \InvalidArgumentException("The specified connection file is not a valid file.");