Commit 5d79089d authored by meus's avatar meus

fixes #395 applied Antik´s patch and ran tests. 1 less failure

parent 69197889
......@@ -1176,8 +1176,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
*/
public function prepareValue($field, $value)
{
if ($value === null || $value === self::$_null) {
if ($value === self::$_null) {
return self::$_null;
} else if ($value === null) {
return null;
} else {
$type = $this->getTypeOf($field);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment