src/Hydrator/Hydrator.php
public function extract($object)
    {
        if (! $object instanceof Entity) {
            return $object;
        }
                    
        $data = parent::extract($object);
          
        unset($data['module_entity']);
                    
        return $data;
    }
public function extract($object)
    {
        if (! $object instanceof Entity) {
            return $object;
        }
                    
        $data = parent::extract($object);
          
        unset($data['module_entity']);
                    
        return $data;
    }
{@inheritdoc}

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