src/Strategy/EntityLink.php
public function getHydratorForEntity($value)
    {
        $entityMetadata = $this->getMetadataMap()[ClassUtils::getRealClass(get_class($value))];
        $objectManagerClass = $this->getDoctrineHydratorConfig()[$entityMetadata['hydrator']]['object_manager'];

        return new DoctrineHydrator($this->getServiceLocator()->get($objectManagerClass), true);
    }
public function getHydratorForEntity($value)
    {
        $entityMetadata = $this->getMetadataMap()[ClassUtils::getRealClass(get_class($value))];
        $objectManagerClass = $this->getDoctrineHydratorConfig()[$entityMetadata['hydrator']]['object_manager'];

        return new DoctrineHydrator($this->getServiceLocator()->get($objectManagerClass), true);
    }
public function getHydratorForEntity ( $ value ) { $ entityMetadata = $ this -> getMetadataMap ( ) [ ClassUtils :: getRealClass ( get_class ( $ value ) ) ] ; $ objectManagerClass = $ this -> getDoctrineHydratorConfig ( ) [ $ entityMetadata [ 'hydrator' ] ] [ 'object_manager' ] ; return new DoctrineHydrator ( $ this -> getServiceLocator ( ) -> get ( $ objectManagerClass ) , true ) ; }
Look up the object manager for the given entity and create a basic hydrator
Look up the object manager for the given entity and create a basic hydrator