public function unserialize($serializedData)
    {
        $repositoryData = json_decode($serializedData, true);
        $references     = $repositoryData['references'];

        foreach ($references as $name => $proxyReference) {
            $this->setReference(
                $name,
                $this->getManager()->getReference(
                    $proxyReference[0], // entity class name
                    $proxyReference[1]  // identifiers
                )
            );
        }

        $identities = $repositoryData['identities'];

        foreach ($identities as $name => $identity) {
            $this->setReferenceIdentity($name, $identity);
        }
    }
public function unserialize($serializedData)
    {
        $repositoryData = json_decode($serializedData, true);
        $references     = $repositoryData['references'];

        foreach ($references as $name => $proxyReference) {
            $this->setReference(
                $name,
                $this->getManager()->getReference(
                    $proxyReference[0], // entity class name
                    $proxyReference[1]  // identifiers
                )
            );
        }

        $identities = $repositoryData['identities'];

        foreach ($identities as $name => $identity) {
            $this->setReferenceIdentity($name, $identity);
        }
    }
public function unserialize ( $ serializedData ) { $ repositoryData = json_decode ( $ serializedData , true ) ; $ references = $ repositoryData [ 'references' ] ; foreach ( $ references as $ name => $ proxyReference ) { $ this -> setReference ( $ name , $ this -> getManager ( ) -> getReference ( $ proxyReference [ 0 ] , // entity class name $ proxyReference [ 1 ] // identifiers ) ) ; } $ identities = $ repositoryData [ 'identities' ] ; foreach ( $ identities as $ name => $ identity ) { $ this -> setReferenceIdentity ( $ name , $ identity ) ; } }
Unserialize reference repository

@param string $serializedData Serialized data
Unserialize reference repository