Permalink
Browse files

Update BuildCommand.php

Pas verbose option for sub commands.
  • Loading branch information...
1 parent 9d74cee commit bd8f1fe08334b2cbb50a155ca4d027f574ded4d9 @zebraf1 zebraf1 committed Nov 18, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 Command/BuildCommand.php
View
@@ -52,7 +52,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
if (!$input->getOption('sql')) {
$in = new ArrayInput(array(
'command' => 'propel:model:build',
- '--connection' => $input->getOption('connection')
+ '--connection' => $input->getOption('connection'),
+ '--verbose' => $input->getOption('verbose')
));
$modelCommand = $this->getApplication()->find('propel:model:build');
$res = $modelCommand->run($in, $output);
@@ -62,6 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$in = new ArrayInput(array(
'command' => 'propel:build:sql',
'--connection' => $input->getOption('connection'),
+ '--verbose' => $input->getOption('verbose')
));
$sqlCommand = $this->getApplication()->find('propel:sql:build');
$sqlCommand->run($in, $output);
@@ -71,6 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$in = new ArrayInput(array(
'command' => 'propel:sql:insert',
'--connection' => $input->getOption('connection'),
+ '--verbose' => $input->getOption('verbose')
'--force' => true,
));
$insertCommand = $this->getApplication()->find('propel:sql:insert');

0 comments on commit bd8f1fe

Please sign in to comment.