diff --git a/cake/libs/model/schema.php b/cake/libs/model/schema.php index 2e46c3715..1d7b04113 100644 --- a/cake/libs/model/schema.php +++ b/cake/libs/model/schema.php @@ -404,17 +404,8 @@ class CakeSchema extends Object { if (is_array($val)) { $vals[] = "'{$key}' => array('".join("', '", $val)."')"; } else if (!is_numeric($key)) { - $prop = "'{$key}' => "; - if (is_bool($val)) { - $prop .= $val ? 'true' : 'false'; - } elseif (is_numeric($val)) { - $prop .= $val; - } elseif ($val === null) { - $prop .= 'null'; - } else { - $prop .= "'{$val}'"; - } - $vals[] = $prop; + $val = var_export($val, true); + $vals[] = "'{$key}' => {$val}"; } } }