From: Vincent Vanwaelscappel Date: Wed, 12 Jun 2019 12:47:02 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=527818c07446ddc5a43e196d4505268f4e0576be;p=cubist_cms-back.git #2810 --- diff --git a/src/app/Console/Commands/MigrateCommand.php b/src/app/Console/Commands/MigrateCommand.php index 0fc1f45..669f7b4 100644 --- a/src/app/Console/Commands/MigrateCommand.php +++ b/src/app/Console/Commands/MigrateCommand.php @@ -4,6 +4,7 @@ namespace Cubist\Backpack\app\Console\Command; use Cubist\Backpack\app\Console\Commands\CubistCommand; +use Cubist\Backpack\app\Magic\Models\CubistMagicAbstractModel; use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Schema\Comparator; use Doctrine\DBAL\Schema\Schema; @@ -63,14 +64,14 @@ class MigrateCommand extends CubistCommand } /** - * @param $model CubistMagicModelAbstract + * @param $model CubistMagicAbstractModel */ public function _migrate($model) { $this->line('Handling ' . get_class($model)); - $res=$model->setSchema($this->_schema); - if(null!==$res) { - $this->line(print_r($res,true)); + $res = $model->setSchema($this->_schema); + if (null !== $res) { + $this->line('-- Migrate ' . $res->getName()); } } }