Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
igormukhingmailcom committed Apr 29, 2015
1 parent 2f5e140 commit 16929b0
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,20 @@ protected function execute(InputInterface $input, OutputInterface $output)
return -1;
}

$commands = array(
'doctrine:database:create' => array('--verbose' => true),
'doctrine:schema:create' => array('--em' => 'write'),
'acme:task:create-task-view-model-schema' => array(),
'doctrine:fixtures:load' => array(),
);
$commands = array();
$commands[] = array('doctrine:database:create' , array('--verbose' => true, '--connection' => 'write'));
$commands[] = array('doctrine:schema:create' , array('--em' => 'write'));

if ($this->getContainer()->getParameter('db_read_name') != $this->getContainer()->getParameter('db_write_name')) {
$commands[] = array('doctrine:database:create' , array('--verbose' => true, '--connection' => 'read'));
}

$commands[] = array('acme:task:create-task-view-model-schema', array());
$commands[] = array('doctrine:fixtures:load' , array());

foreach ($commands as $command) {
list($commandName, $commandOptions) = $command;

foreach ($commands as $commandName => $commandOptions) {
$command = $this->getApplication()->find($commandName);
$commandInput = new ArrayInput(
array_merge(
Expand Down

0 comments on commit 16929b0

Please sign in to comment.