fixed doctrine cli (git submodule update has not helped)
This commit is contained in:
parent
0305a6ce3b
commit
0a2d7106fa
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
include('doctrine.php');
|
||||
include('doctrine.php');
|
||||
?>
|
|
@ -47,12 +47,12 @@ Util\Configuration::load(BACKEND_DIR . '/volkszaehler.conf');
|
|||
|
||||
$em = Volkszaehler\Dispatcher::createEntityManager();
|
||||
|
||||
$helperSet = new \Symfony\Components\Console\Helper\HelperSet(array(
|
||||
$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)
|
||||
));
|
||||
|
||||
$cli = new \Symfony\Components\Console\Application('Doctrine Command Line Interface', Doctrine\ORM\Version::VERSION);
|
||||
$cli = new \Symfony\Component\Console\Application('Doctrine Command Line Interface', Doctrine\ORM\Version::VERSION);
|
||||
$cli->setCatchExceptions(TRUE);
|
||||
$cli->setHelperSet($helperSet);
|
||||
$cli->addCommands(array(
|
||||
|
|
Loading…
Add table
Reference in a new issue