Browse files

Added support for the debug option in build-model and build-sql commands

  • Loading branch information...
1 parent 465fad8 commit 17d994bcd7ee3fc7bca8528a0aec11fa9a361e96 @fzaninotto fzaninotto committed May 30, 2011
Showing with 6 additions and 0 deletions.
  1. +3 −0 Command/BuildModelCommand.php
  2. +3 −0 Command/BuildSqlCommand.php
View
3 Command/BuildModelCommand.php
@@ -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) {
View
3 Command/BuildSqlCommand.php
@@ -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();

0 comments on commit 17d994b

Please sign in to comment.