From 184a7f621df0ef5f3b760029851dd9025f8c1a55 Mon Sep 17 00:00:00 2001 From: doctrine Date: Mon, 5 Jun 2006 19:44:31 +0000 Subject: [PATCH] Minor serialization fix --- Doctrine/Record.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doctrine/Record.php b/Doctrine/Record.php index f9fb72527..b24287637 100644 --- a/Doctrine/Record.php +++ b/Doctrine/Record.php @@ -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; }