From b297e334e1e10d2a80f2bf133cae7fd11704988c Mon Sep 17 00:00:00 2001 From: Tom Landvoigt Date: Thu, 6 Sep 2018 13:51:37 +0200 Subject: [PATCH] [serialization-bug] fix for https://github.com/LExpress/doctrine1/issues/53 on branch [serialization-bug] --- lib/Doctrine/Record.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 386286d29..c3d90a82b 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -825,10 +825,6 @@ public function serialize() unset($vars['_data'][$k]); } else { switch ($this->_table->getTypeOf($k)) { - case 'array': - case 'object': - $vars['_data'][$k] = serialize($vars['_data'][$k]); - break; case 'gzip': $vars['_data'][$k] = gzcompress($vars['_data'][$k]); break; @@ -874,10 +870,6 @@ public function unserialize($serialized) foreach ($this->_data as $k => $v) { switch ($this->_table->getTypeOf($k)) { - case 'array': - case 'object': - $this->_data[$k] = unserialize($this->_data[$k]); - break; case 'gzip': $this->_data[$k] = gzuncompress($this->_data[$k]); break;