Skip to content

Commit

Permalink
Added support for the debug option in build-model and build-sql commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed May 30, 2011
1 parent 465fad8 commit 17d994b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Command/BuildModelCommand.php
Expand Up @@ -38,6 +38,9 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if ($input->getOption('verbose')) {
$this->additionalPhingArgs[]= 'verbose';
}
$this->callPhing('om');

foreach ($this->tempSchemas as $schemaFile => $schemaDetails) {
Expand Down
3 changes: 3 additions & 0 deletions Command/BuildSqlCommand.php
Expand Up @@ -42,6 +42,9 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if ($input->getOption('verbose')) {
$this->additionalPhingArgs[]= 'verbose';
}
$this->callPhing('sql', array('propel.packageObjectModel' => false));

$filesystem = new Filesystem();
Expand Down

0 comments on commit 17d994b

Please sign in to comment.