1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Minor serialization fix

This commit is contained in:
doctrine 2006-06-05 19:44:31 +00:00
parent f5f3b0d27a
commit 184a7f621d

View File

@ -289,14 +289,14 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
foreach($this->data as $k => $v) {
if($v instanceof Doctrine_Record)
unset($this->data[$k]);
unset($vars['data'][$k]);
elseif($v === self::$null) {
unset($this->data[$k]);
unset($vars['data'][$k]);
} else {
switch($this->table->getTypeOf($k)):
case "array":
case "object":
$this->data[$k] = serialize($this->data[$k]);
$vars['data'][$k] = serialize($vars['data'][$k]);
break;
endswitch;
}