Commit 184a7f62 authored by doctrine's avatar doctrine

Minor serialization fix

parent f5f3b0d2
......@@ -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;
}
......
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