From cbcc89ea61e842202ce864f019c2b3d5bb77ad63 Mon Sep 17 00:00:00 2001 From: William DURAND Date: Mon, 5 Sep 2011 00:43:23 +0200 Subject: [PATCH] [command] Fixed insert-sql information --- Command/InsertSqlCommand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Command/InsertSqlCommand.php b/Command/InsertSqlCommand.php index 16db740..813fb4d 100644 --- a/Command/InsertSqlCommand.php +++ b/Command/InsertSqlCommand.php @@ -52,9 +52,9 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { - if ($input->getOption('force')) { - $this->writeSection($output, '[Propel] You are running the command: propel:insert-sql'); + $this->writeSection($output, '[Propel] You are running the command: propel:insert-sql'); + if ($input->getOption('force')) { if ($input->getOption('verbose')) { $this->additionalPhingArgs[] = 'verbose'; } @@ -66,7 +66,6 @@ EOT 'propel.database.database' => $defaultConfig['adapter'], 'propel.database.user' => $defaultConfig['connection']['user'], 'propel.database.password' => isset($defaultConfig['connection']['password']) ? $defaultConfig['connection']['password'] : '', - 'propel.schema.dir' => $this->getApplication()->getKernel()->getRootDir() . '/propel/schema/', )); if (true === $ret) {