src/Entity/Hydrator/OrganizationHydrator.php
public function hydrate(array $data, $object)
    {
        $this->data = $data;
        $this->object = $object;
        // download Image
        $this->hydrateSkimData();
        $reflProperties = self::getReflProperties($object);
        foreach ($this->data as $key => $value) {
            if (isset($reflProperties[$key])) {
                $value  = $this->hydrateValue($key, $value);
                $setter = 'set' . ucfirst($key);
                if (method_exists($object, $setter)) {
                    $object->$setter($value);
                } else {
                    // the values of the entity have to be set explicitly
                    $reflProperties[$key]->setValue($object, $this->hydrateValue($key, $value));
                }
            }
        }
        return $object;
    }
public function hydrate(array $data, $object)
    {
        $this->data = $data;
        $this->object = $object;
        // download Image
        $this->hydrateSkimData();
        $reflProperties = self::getReflProperties($object);
        foreach ($this->data as $key => $value) {
            if (isset($reflProperties[$key])) {
                $value  = $this->hydrateValue($key, $value);
                $setter = 'set' . ucfirst($key);
                if (method_exists($object, $setter)) {
                    $object->$setter($value);
                } else {
                    // the values of the entity have to be set explicitly
                    $reflProperties[$key]->setValue($object, $this->hydrateValue($key, $value));
                }
            }
        }
        return $object;
    }
Hydrate $object with the provided $data.

@param  array $data
@param  object $object
@return object