From 5eb771bf301ab25eea59528ffbba192d4f4f5224 Mon Sep 17 00:00:00 2001 From: samuel4x4 Date: Mon, 24 Nov 2014 01:08:52 +0200 Subject: [PATCH] Rename DoctrineMigrate to DoctrineMigrateTask I hope this is the reason it doesn't works. --- .../Symfony2/{DoctrineMigrate.php => DoctrineMigrateTask.php} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename Mage/Task/BuiltIn/Symfony2/{DoctrineMigrate.php => DoctrineMigrateTask.php} (93%) diff --git a/Mage/Task/BuiltIn/Symfony2/DoctrineMigrate.php b/Mage/Task/BuiltIn/Symfony2/DoctrineMigrateTask.php similarity index 93% rename from Mage/Task/BuiltIn/Symfony2/DoctrineMigrate.php rename to Mage/Task/BuiltIn/Symfony2/DoctrineMigrateTask.php index b76633d..3a412e9 100644 --- a/Mage/Task/BuiltIn/Symfony2/DoctrineMigrate.php +++ b/Mage/Task/BuiltIn/Symfony2/DoctrineMigrateTask.php @@ -15,7 +15,7 @@ use Mage\Task\BuiltIn\Symfony2\SymfonyAbstractTask; /** * Task for Doctrine migrations */ -class DoctrineMigrate extends SymfonyAbstractTask +class DoctrineMigrateTask extends SymfonyAbstractTask { /** * (non-PHPdoc) @@ -34,7 +34,9 @@ class DoctrineMigrate extends SymfonyAbstractTask public function run() { $env = $this->getParameter('env', 'dev'); + $command = $this->getAppPath() . ' doctrine:migrations:migrate -n --env=' . $env; + return $this->runCommand($command); } }