Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding missing dialog helper needed for migrations

  • Loading branch information...
commit 928a8c2f8c32f20c9b0ed1926477bf6390ef13b9 1 parent fb4c807
@mariano authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  bin/doctrine
  2. +2 −1  bin/doctrine-cli-config.php
View
2  bin/doctrine
@@ -28,11 +28,11 @@ if (file_exists($configFile)) {
}
$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet();
-//\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet);
$cli = new \Symfony\Component\Console\Application('Doctrine Command Line Interface', \Doctrine\ORM\Version::VERSION);
$cli->setCatchExceptions(true);
$cli->setHelperSet($helperSet);
+
\Doctrine\ORM\Tools\Console\ConsoleRunner::addCommands($cli);
$cli->addCommands(array(
View
3  bin/doctrine-cli-config.php
@@ -51,7 +51,8 @@
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()),
- 'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)
+ 'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em),
+ 'dialog' => new \Symfony\Component\Console\Helper\DialogHelper()
));
?>
Please sign in to comment.
Something went wrong with that request. Please try again.