]> _ Git - cubist_cms-back.git/commitdiff
wip #5108
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 16 Feb 2022 17:53:15 +0000 (18:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 16 Feb 2022 17:53:15 +0000 (18:53 +0100)
src/app/Magic/Models/CubistMagicAbstractModel.php

index 4dfd4b422ef54dd8af02792b2c2fcacef384efe7..d787671a19633683cedcc737a8273e7dcd7edc2a 100644 (file)
@@ -48,7 +48,7 @@ class CubistMagicAbstractModel extends Model implements HasMedia
 
     public $registerMediaConversionsUsingModelInstance = true;
 
-    protected static $_doctrineTypesMapping = ['int' => 'integer', 'longtext' => 'text'];
+    protected static $_doctrineTypesMapping = ['int' => 'integer','longtext'=>'text'];
 
     protected $connection = null;
     protected $primaryKey = 'id';
@@ -668,7 +668,7 @@ class CubistMagicAbstractModel extends Model implements HasMedia
 
     public function onBeforeUpdate($controller, $request)
     {
-        $this->setAttribute('updated_at', new Datetime());
+
     }
 
     /**