Minor serialization fix
This commit is contained in:
parent
f5f3b0d27a
commit
184a7f621d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user