]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 16:09:43 +0000 (18:09 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 16:09:43 +0000 (18:09 +0200)
src/app/Magic/Models/CubistMagicModelAbstract.php

index a1576b9a92925f57ed28a46bde7aada3c1d2480e..8a68f4c26b0043a657b5fdb55e348873a7435c06 100644 (file)
@@ -15,10 +15,14 @@ use Illuminate\Support\Str;
 class CubistMagicModelAbstract extends Model
 {
 
+
     use CubistMagicAttribute;
     use CrudTrait;
     use Sluggable, SluggableScopeHelpers;
 
+    protected $primaryKey = 'id';
+    public $timestamps = true;
+
     /**
      * @var Field[]
      */
@@ -29,10 +33,9 @@ class CubistMagicModelAbstract extends Model
      */
     protected $_options = [];
 
-    private $__attributes;
-
-    public $timestamps = true;
-
+    /**
+     * @var array
+     */
     protected $_slugFields = ['slug', 'title', 'name'];
 
     public function __construct(array $attributes = [])