From 17d994bcd7ee3fc7bca8528a0aec11fa9a361e96 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Mon, 30 May 2011 17:03:08 +0200 Subject: [PATCH] Added support for the debug option in build-model and build-sql commands --- Command/BuildModelCommand.php | 3 +++ Command/BuildSqlCommand.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Command/BuildModelCommand.php b/Command/BuildModelCommand.php index 15695c2..fc11116 100644 --- a/Command/BuildModelCommand.php +++ b/Command/BuildModelCommand.php @@ -38,6 +38,9 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { + if ($input->getOption('verbose')) { + $this->additionalPhingArgs[]= 'verbose'; + } $this->callPhing('om'); foreach ($this->tempSchemas as $schemaFile => $schemaDetails) { diff --git a/Command/BuildSqlCommand.php b/Command/BuildSqlCommand.php index ddfa357..5dd9cf3 100644 --- a/Command/BuildSqlCommand.php +++ b/Command/BuildSqlCommand.php @@ -42,6 +42,9 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { + if ($input->getOption('verbose')) { + $this->additionalPhingArgs[]= 'verbose'; + } $this->callPhing('sql', array('propel.packageObjectModel' => false)); $filesystem = new Filesystem();