Doctrine\ODM\OrientDB\UnitOfWork::getHydrator PHP Method

getHydrator() public method

Lazily instantiates and returns the Hydrator
public getHydrator ( ) : Hydrator
return Doctrine\ODM\OrientDB\Mapper\Hydration\Hydrator
    public function getHydrator()
    {
        if (!$this->hydrator) {
            $this->hydrator = new Hydrator($this);
        }
        return $this->hydrator;
    }