From a6defda1f368d9f805457d373a0ceba799f9a629 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 27 May 2019 17:25:47 +0200 Subject: [PATCH] #2783 --- src/app/Magic/Models/CubistMagicModelAbstract.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/Magic/Models/CubistMagicModelAbstract.php b/src/app/Magic/Models/CubistMagicModelAbstract.php index 8338b3c..6cdfc64 100644 --- a/src/app/Magic/Models/CubistMagicModelAbstract.php +++ b/src/app/Magic/Models/CubistMagicModelAbstract.php @@ -9,7 +9,6 @@ use Cubist\Backpack\app\Magic\Util; use Cviebrock\EloquentSluggable\Sluggable; use Cviebrock\EloquentSluggable\SluggableScopeHelpers; use Doctrine\DBAL\Schema\Schema; -use Doctrine\DBAL\Schema\Table; use Illuminate\Database\Eloquent\Model; use Cubist\Backpack\app\Magic\CubistMagicAttribute; use Illuminate\Support\Str; @@ -18,7 +17,7 @@ use Webfactor\Laravel\Backpack\NestedModels\Traits\NestedModelTrait; class CubistMagicModelAbstract extends Model { use CubistMagicAttribute; - use CrudTrait, NestedModelTrait; + use NestedModelTrait; use Sluggable, SluggableScopeHelpers; protected static $_doctrineTypesMapping = ['int' => 'integer']; @@ -172,7 +171,6 @@ class CubistMagicModelAbstract extends Model $table->setPrimaryKey([$this->primaryKey], 'pk_' . $this->table); - foreach ($this->_fields as $field) { $field->defineDbColumn($table); } -- 2.39.5