Fix previous commit
This commit is contained in:
parent
16149008db
commit
967bc8769a
1 changed files with 10 additions and 10 deletions
|
|
@ -51,9 +51,9 @@ class BuildCommand extends AbstractCommand
|
|||
{
|
||||
if (!$input->getOption('sql')) {
|
||||
$in = new ArrayInput(array(
|
||||
'command' => 'propel:model:build',
|
||||
'--connection' => $input->getOption('connection'),
|
||||
'--verbose' => $input->getOption('verbose')
|
||||
'command' => 'propel:model:build',
|
||||
'--connection' => $input->getOption('connection'),
|
||||
'--verbose' => $input->getOption('verbose'),
|
||||
));
|
||||
$modelCommand = $this->getApplication()->find('propel:model:build');
|
||||
$res = $modelCommand->run($in, $output);
|
||||
|
|
@ -61,9 +61,9 @@ class BuildCommand extends AbstractCommand
|
|||
|
||||
if (!$input->getOption('classes')) {
|
||||
$in = new ArrayInput(array(
|
||||
'command' => 'propel:build:sql',
|
||||
'--connection' => $input->getOption('connection'),
|
||||
'--verbose' => $input->getOption('verbose')
|
||||
'command' => 'propel:build:sql',
|
||||
'--connection' => $input->getOption('connection'),
|
||||
'--verbose' => $input->getOption('verbose'),
|
||||
));
|
||||
$sqlCommand = $this->getApplication()->find('propel:sql:build');
|
||||
$sqlCommand->run($in, $output);
|
||||
|
|
@ -71,10 +71,10 @@ class BuildCommand extends AbstractCommand
|
|||
|
||||
if ($input->getOption('insert-sql')) {
|
||||
$in = new ArrayInput(array(
|
||||
'command' => 'propel:sql:insert',
|
||||
'--connection' => $input->getOption('connection'),
|
||||
'--verbose' => $input->getOption('verbose')
|
||||
'--force' => true,
|
||||
'command' => 'propel:sql:insert',
|
||||
'--connection' => $input->getOption('connection'),
|
||||
'--verbose' => $input->getOption('verbose'),
|
||||
'--force' => true,
|
||||
));
|
||||
$insertCommand = $this->getApplication()->find('propel:sql:insert');
|
||||
$insertCommand->run($in, $output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue