src/Hydrator.php
public function getHydrator($class)
    {
        $metadata = $this->classMetadataFactory->getMetadataForClass($class);
        return new Hydrator($this->classMetadataFactory, $metadata, $this->documentManager, $this->repositoryFactory);
    }
public function getHydrator($class)
    {
        $metadata = $this->classMetadataFactory->getMetadataForClass($class);
        return new Hydrator($this->classMetadataFactory, $metadata, $this->documentManager, $this->repositoryFactory);
    }
public function getHydrator ( $ class ) { $ metadata = $ this -> classMetadataFactory -> getMetadataForClass ( $ class ) ; return new Hydrator ( $ this -> classMetadataFactory , $ metadata , $ this -> documentManager , $ this -> repositoryFactory ) ; }
Get hydrator for specified class

@param   string              $class              Class which you will get hydrator
@return  Hydrator                                Hydrator corresponding to specified class
Get hydrator for specified class