protected function hydrateItem($objectClass, array $item)
    {
        $object = $this->createObjectToHydrate($objectClass);

        if (0 == count($item)) {
            return $object;
        }

        $hydrator = $this->objectManager->getHydratorFor($objectClass);

        return $hydrator->hydrate($item, $object);
    }
protected function hydrateItem($objectClass, array $item)
    {
        $object = $this->createObjectToHydrate($objectClass);

        if (0 == count($item)) {
            return $object;
        }

        $hydrator = $this->objectManager->getHydratorFor($objectClass);

        return $hydrator->hydrate($item, $object);
    }
protected function hydrateItem ( $ objectClass , array $ item ) { $ object = $ this -> createObjectToHydrate ( $ objectClass ) ; if ( 0 == count ( $ item ) ) { return $ object ; } $ hydrator = $ this -> objectManager -> getHydratorFor ( $ objectClass ) ; return $ hydrator -> hydrate ( $ item , $ object ) ; }
Create an hydrate an entity from a raw results.

@param array $data Raw results.

@return array Return an hydrated object.
Create an hydrate an entity from a raw results .