diff --git a/lib/Cake/Model/CakeSchema.php b/lib/Cake/Model/CakeSchema.php index b9ae0ad0d..74b426e40 100644 --- a/lib/Cake/Model/CakeSchema.php +++ b/lib/Cake/Model/CakeSchema.php @@ -577,6 +577,9 @@ class CakeSchema extends Object { $vals[] = "'{$key}' => array('" . implode("', '", $val) . "')"; } elseif (!is_numeric($key)) { $val = var_export($val, true); + if ($val === 'NULL') { + $val = 'null'; + } $vals[] = "'{$key}' => {$val}"; } }