diff --git a/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php b/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php index e1b8ae16..a87b73ce 100644 --- a/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php +++ b/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php @@ -69,7 +69,7 @@ public function serialize() $simpleReferences[$name] = [$className, $this->getIdentifier($reference, $unitOfWork)]; } - $serializedData = json_encode([ + $serializedData = serialize([ 'references' => $simpleReferences, 'identities' => $this->getIdentities(), ]); @@ -84,7 +84,7 @@ public function serialize() */ public function unserialize($serializedData) { - $repositoryData = json_decode($serializedData, true); + $repositoryData = unserialize($serializedData); $references = $repositoryData['references']; foreach ($references as $name => $proxyReference) {