src/Hydrator/Hydrator.php
public function hydrate(array $data, $object)
    {
        if (! $object instanceof Entity) {
            return $object;
        }
                
        parent::hydrate($data, $object);
               
        $moduleEntity = parent::hydrate($data, new \Pacificnm\Module\Entity\Entity());
        
        $object->setModuleEntity($moduleEntity);
        
        return $object;
    }
public function hydrate(array $data, $object)
    {
        if (! $object instanceof Entity) {
            return $object;
        }
                
        parent::hydrate($data, $object);
               
        $moduleEntity = parent::hydrate($data, new \Pacificnm\Module\Entity\Entity());
        
        $object->setModuleEntity($moduleEntity);
        
        return $object;
    }
{@inheritdoc}

@see \Zend\Stdlib\Hydrator\ClassMethods::hydrate()