]> _ Git - cubist_cms-back.git/commitdiff
wip #5041
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jan 2022 17:16:11 +0000 (18:16 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jan 2022 17:16:11 +0000 (18:16 +0100)
src/app/Magic/Models/CubistMagicAbstractModel.php

index b5c5ce92be79878b3ca10b8cfcd7f5688824eceb..93b641d6d4668131224489ff69c159f0b6b52ef8 100644 (file)
@@ -512,7 +512,7 @@ class CubistMagicAbstractModel extends Model implements HasMedia
      */
     public function setSchema($schema)
     {
-        if (!$this->_syncDbSchema) {
+        if (!$this->_syncDbSchema || is_null($this->table)) {
             return null;
         }