diff --git a/lib/Cake/Console/Command/Task/FixtureTask.php b/lib/Cake/Console/Command/Task/FixtureTask.php index c4bf93d62..92e5154c6 100644 --- a/lib/Cake/Console/Command/Task/FixtureTask.php +++ b/lib/Cake/Console/Command/Task/FixtureTask.php @@ -362,6 +362,9 @@ class FixtureTask extends BakeTask { $values = array(); foreach ($record as $field => $value) { $val = var_export($value, true); + if ($val === 'NULL') { + $val = 'null'; + } $values[] = "\t\t\t'$field' => $val"; } $out .= "\t\tarray(\n";