Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/4259'
Browse files Browse the repository at this point in the history
Close #4259
Fixes #4258
  • Loading branch information
weierophinney committed Apr 22, 2013
2 parents dda48bc + 0c0c518 commit b55c35c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions library/Zend/Stdlib/Hydrator/ArraySerializable.php
Expand Up @@ -31,15 +31,16 @@ public function extract($object)
));
}

$self = $this;
$data = $object->getArrayCopy();
array_walk($data, function (&$value, $name) use ($self, &$data) {
if (!$self->getFilter()->filter($name)) {

foreach ($data as $name => $value) {
if (!$this->getFilter()->filter($name)) {
unset($data[$name]);
} else {
$value = $self->extractValue($name, $value);
continue;
}
});

$data[$name] = $this->extractValue($name, $value);
}

return $data;
}
Expand Down

0 comments on commit b55c35c

Please sign in to comment.