1
0
mirror of synced 2024-12-13 14:56:01 +03:00

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

This commit is contained in:
meus 2007-07-21 16:49:52 +00:00
parent 6919788903
commit 5d79089d1f

View File

@ -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);