src/Entity/Hydrator/AnonymEntityHydrator.php
public function extract($object)
    {
        $data = array();
        if (is_array($object) || $object instanceof \Traversable) {
            foreach ($object as $key => $value) {
                $data[$key] = $value;
            }
        }
        return $data;
    }
public function extract($object)
    {
        $data = array();
        if (is_array($object) || $object instanceof \Traversable) {
            foreach ($object as $key => $value) {
                $data[$key] = $value;
            }
        }
        return $data;
    }
/* (non-PHPdoc)
@see \Zend\Hydrator\HydratorInterface::extract()