1
0
mirror of synced 2025-01-30 20:11:49 +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) { foreach($this->data as $k => $v) {
if($v instanceof Doctrine_Record) if($v instanceof Doctrine_Record)
unset($this->data[$k]); unset($vars['data'][$k]);
elseif($v === self::$null) { elseif($v === self::$null) {
unset($this->data[$k]); unset($vars['data'][$k]);
} else { } else {
switch($this->table->getTypeOf($k)): switch($this->table->getTypeOf($k)):
case "array": case "array":
case "object": case "object":
$this->data[$k] = serialize($this->data[$k]); $vars['data'][$k] = serialize($vars['data'][$k]);
break; break;
endswitch; endswitch;
} }