]> _ Git - cubist_cms-back.git/commitdiff
fix #3025 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Sep 2019 16:28:27 +0000 (18:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 11 Sep 2019 16:28:27 +0000 (18:28 +0200)
src/app/Magic/Fields/SelectFromModel.php

index 65f563082df6349494e14fea9695808640378c81..e42a8aa835074781a0e91d67d9e47a2003cffc18 100644 (file)
@@ -17,10 +17,11 @@ class SelectFromModel extends Model
     protected $_databaseType = 'string';
     protected $_multiple = false;
     protected $_order = false;
+    protected $_allows_null = false;
 
     public function getDefaultAttributes()
     {
-        return array_merge(parent::getDefaultAttributes(), ['order' => $this->_order]);
+        return array_merge(parent::getDefaultAttributes(), ['order' => $this->_order, 'allows_null' => $this->_allows_null]);
     }
 
     protected function _preGetDefinition()