diff --git a/lib/Doctrine/Task/DropDb.php b/lib/Doctrine/Task/DropDb.php index 3c982478c..bbb9ae89d 100644 --- a/lib/Doctrine/Task/DropDb.php +++ b/lib/Doctrine/Task/DropDb.php @@ -35,7 +35,7 @@ class Doctrine_Task_DropDb extends Doctrine_Task public $description = 'Drop database for all existing connections', $requiredArguments = array(), $optionalArguments = array('force' => 'Whether or not to force the drop database task'); - + public function execute() { if ( ! $this->getArgument('force')) { @@ -49,10 +49,10 @@ class Doctrine_Task_DropDb extends Doctrine_Task } $results = Doctrine::dropDatabases(); - + foreach ($results as $name => $result) { $msg = $result instanceof Exception ? 'Could not drop database for connection: "' .$name . '." Failed with exception: ' . $result->getMessage():$result; - + $this->notify($msg); } }