prevent NULL in fixture files

This commit is contained in:
AD7six 2012-05-01 23:39:35 +02:00
parent d1f522e53a
commit 0c4613fdd2

View file

@ -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}";
}
}