Skip to content

Commit

Permalink
[serialization-bug] fix for FriendsOfSymfony1#53
Browse files Browse the repository at this point in the history
on branch [serialization-bug]
  • Loading branch information
tlt-miamed committed Sep 6, 2018
1 parent 92671a5 commit b297e33
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Doctrine/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b297e33

Please sign in to comment.