Permalink
Browse files

Adding missing dialog helper needed for migrations

  • Loading branch information...
1 parent fb4c807 commit 928a8c2f8c32f20c9b0ed1926477bf6390ef13b9 @mariano committed Apr 17, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 bin/doctrine
  2. +2 −1 bin/doctrine-cli-config.php
View
@@ -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(
@@ -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()
));
?>

0 comments on commit 928a8c2

Please sign in to comment.