src/Entity/Hydrator/AnonymEntityHydrator.php
public function hydrate(array $data, $object)
    {
        $setterMethods = array();
        if ($object instanceof AwareEntity) {
            $setterMethods = $object->getSetters();
        }
        foreach ($data as $key => $value) {
            $setter = 'set' . ucfirst($key);
            if (in_array($setter, $setterMethods)) {
                $object->$setter($value);
            } else {
                $object->$key = $value;
            }
        }
        return $object;
    }
public function hydrate(array $data, $object)
    {
        $setterMethods = array();
        if ($object instanceof AwareEntity) {
            $setterMethods = $object->getSetters();
        }
        foreach ($data as $key => $value) {
            $setter = 'set' . ucfirst($key);
            if (in_array($setter, $setterMethods)) {
                $object->$setter($value);
            } else {
                $object->$key = $value;
            }
        }
        return $object;
    }
/* (non-PHPdoc)
@see \Zend\Hydrator\HydratorInterface::hydrate()