Hydrate $object with the provided $data.

@param  array  $data
@param  GroupClassInterface $object
@return GroupClassInterface
961077
public function hydrate(array $data, $object)
    {
        $object->setId($this->getData('id', $data));
        $object->setName($this->getData('name', $data));
        return $object;
    }
500164
public function hydrate(array $data, $object)
    {
        if (!$object instanceof DownloadList) {
            throw new Exception('$object must be an instance of Downloadlist');
        }

        return parent::hydrate($data, $object);
    }
621759
public function hydrate(array $data, $object)
    {
        if (!isset($data['owner'])) {
            return $object;
        }

        $hydrators = new AggregateHydrator();
        $hydrators->add(new UserHydrator());
        $hydrators->add(new ImageCollectionAwareHydrator());

        $object->setOwner($hydrators->hydrate($data['owner'], new User()));

        return $object;
    }
325766
public function make($object)
    {
        $manager = Manager::getInstance();

        // Instantiate hydrator
        // TODO: We'll need to optimize this and allow pre-generation
        //       of these hydrators, and get it, ideally, from the entityMap or
        //       the Mapper class, so it's only instantiated once
        $config = new Configuration(get_class($object));

        $hydratorClass = $config->createFactory()->getHydratorClass();
        $hydrator = new $hydratorClass();

        if ($manager->isValueObject($object)) {
            $entityMap = $manager->getValueMap($object);
        } else {
            $entityMap = $manager->mapper($object)->getEntityMap();
        }

        // Build Wrapper
        return new ObjectWrapper($object, $entityMap, $hydrator);
    }
371640
public function hydrate(array $data, $object)
    {
        $object->setId(isset($data['e.id']) ? $data['e.id'] : $data['id']);
        $object->setName(isset($data['e.name']) ? $data['e.name'] : $data['name']);
        $object->setDefault(isset($data['e.isdefault']) ? $data['e.isdefault'] == 1 : $data['isdefault'] == 1);
        return $object;
    }
1077191
public function hydrate(array $data, $object)
    {
        if (!$object instanceof BlockEntityInterface) {
            throw new Exception\InvalidArgumentException(
                '$object must be an instance of PlaygroundCms\Entity\BlockInterface'
            );
        }
        //$data = $this->mapField('block_id', 'id', $data);
        return parent::hydrate($data, $object);
    }
757475
protected function hydrateObjectForm($object)
    {
        // Hydrate the "SEO" tab form
        $this->hydrateSeoForm($object);

        // Prepare the data that will hydrate the form
        $data = array(
            'id'           => $object->getId(),
            'locale'       => $object->getLocale(),
            'title'        => $object->getTitle(),
            'chapo'        => $object->getChapo(),
            'description'  => $object->getDescription(),
            'postscriptum' => $object->getPostscriptum(),
            'visible'      => $object->getVisible(),
            'parent'       => $object->getParent()
        );

        // Setup the object form
        return $this->createForm(AdminForm::FOLDER_MODIFICATION, "form", $data);
    }
563336
public function fill($object, array $data)
    {
        if (! $object instanceof ConversionInterface) {
            throw new InvalidArgumentException(sprintf(
                'Invalid object "%s" provided; must be an instance of "%s".',
                is_object($object) ? get_class($object) : gettype($object),
                ConversionInterface::CLASS
            ));
        }
        $object->fromArray($data);
    }
129557
protected function parseObject(ObjectInterface $object, array $data)
    {
        foreach ($data as $index => $value) {
            if (false !== strpos($index, '$')) {
                $index = str_replace('$', '_', $index);
            }

            if (property_exists($object, $index)) {
                $object = $this->parseProperty($object, $index, $value);
            } elseif (true == ($fieldTypeClassName = $object->isFieldPatternedField($index))) {
                $object = $this->parsePatternedField($object, $fieldTypeClassName, $index, $value);
            }
        }

        return $object;
    }
1124241
protected function hydrateObjectForm($object)
    {
        $data = array(
            'area_id' => $object->getId(),
            'name' => $object->getName()
        );

        return $this->createForm(AdminForm::AREA_MODIFICATION, 'form', $data);
    }
1054333
protected function hydrateObjectForm($object)
    {
        // Prepare the data that will hydrate the form
        $data = [
            'id'            => $object->getId(),
            'locale'        => $object->getLocale(),
            'title'         => $object->getTitle(),
            'chapo'         => $object->getChapo(),
            'description'   => $object->getDescription(),
            'postscriptum'  => $object->getPostscriptum(),
            'color'         => $object->getColor(),
            'code'          => $object->getCode()
        ];

        $form = $this->createForm(AdminForm::ORDER_STATUS_MODIFICATION, "form", $data);

        // Setup the object form
        return $form;
    }
208614
private function hydrateOne(string $classPath, array $data): Hydratable
    {
        /** @var Hydratable $entity */
        $entity = new $classPath();
        $entity->hydrate($data);

        return $entity;
    }
299999
public function hydrateObject($object, $data, $class, $format, $context)
    {
        $attributes = $this->getAttributes($class, $format, $context);
        foreach ($attributes as $attribute) {
            $value = isset($data[$attribute]) ? $data[$attribute] : null;
            $value = $this->denormalizeProperty($value, null, $attribute, $format, $context);

            $this->setAttributeValue($object, $attribute, $value, $format, $context);
        }

        return $object;
    }
369145
public function hydrate($object, $data, $prefix)
    {
        if (is_array($data)) {
            foreach ($data as $key => $value) {
                // Check setMethod
     //           print_r(strrpos($key, $prefix));
                if (strrpos($key, $prefix) !== false && !$this->callSetter($object, $this->format($key, $prefix), $value)) {
                    // If no setter is defined, we reinject into array
                    $data[$key] = $value; // Change data with subObject
                }
            }
        }

        return $object;
    }
533458
protected function hydrateObjectForm($object)
    {
        $data = [
            'id'        => $object->getId(),
            'hook_id'   => $object->getHookId(),
            'module_id' => $object->getModuleId(),
            'classname' => $object->getClassname(),
            'method'    => $object->getMethod(),
            'active'    => $object->getActive(),
            'templates' => $object->getTemplates(),
        ];

        return $this->createForm(AdminForm::MODULE_HOOK_MODIFICATION, 'form', $data);
    }
11311
public function hydrate(array $data, $object)
    {
        if (!isset($data['album'])) {
            return $object;
        }

        $hydrators = new AggregateHydrator();
        $hydrators->add(new AlbumHydrator());
        $hydrators->add(new ImageCollectionAwareHydrator());

        $object->setAlbum($hydrators->hydrate($data['album'], new Album()));

        return $object;
    }
341547
public function hydrate(array $data, $object)
    {
        if (isset($data['name'])) {
            $object->setName($data['name']);
        }
        if (isset($data['doc'])) {
            $object->setDocumentation($data['doc']);
        }
        if (isset($data['parameters_definitions']) && is_array($data['parameters_definitions'])) {
            $object->setParametersDefinitions($data['parameters_definitions']);
        }
        if (isset($data['template_definitions']) && is_array($data['template_definitions'])) {
            $object->setParametersTemplates($data['template_definitions']);
        }
        return $object;
    }