]> _ Git - cubist_cms-back.git/commitdiff
#2810
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jun 2019 15:04:34 +0000 (17:04 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jun 2019 15:04:34 +0000 (17:04 +0200)
src/app/Magic/Fields/Field.php

index 4f5e15d89525e8193d11985feb05ca465a68af87..a96d39e468a3cecdf3ebbd4ef2723e44d4bfa7a4 100644 (file)
@@ -126,7 +126,7 @@ class Field
         $table->addColumn($name,
             CubistMagicAbstractModel::toDoctrineType($this->getDatabaseType()),
             array_merge(
-                ['allow_null' => $this->getAttribute('allow_null', true)],
+                ['nullable' => $this->getAttribute('allow_null', true)],
                 $this->_databaseAttributes)
         );
         if ($this->_databaseUnique) {