This commit is contained in:
William DURAND 2011-07-30 19:26:48 +02:00
commit e463a8bcd8
4 changed files with 61 additions and 70 deletions

View file

@ -43,8 +43,9 @@ class DatabaseCreateCommand extends PhingCommand
\Propel::setConfiguration($this->getTemporaryConfiguration($name, $config));
$connection = \Propel::getConnection();
$statement = $connection->prepare($query);
$statement = $connection->prepare($query);
$statement->execute();
$output->writeln(sprintf('<info><comment>%s</comment> has been created.</info>', $dbName));
} catch (\Exception $e) {
$output->writeln(sprintf('<error>An error has occured: %s</error>', $e->getMessage()));