public function transform(array $elasticaObjects)
    {

        $results = array();

        foreach ($elasticaObjects as $elasticaObject) {
            $elasticaObject = $elasticaObject->getHit();

            $obj = new $this->objectClass();
            $obj->setId($elasticaObject['_id']);

            foreach ($elasticaObject['_source'] as $attributeName => $attributeValue) {

                if (property_exists($this->objectClass, $attributeName)) {
                    $method = 'set' . str_replace(' ', '', ucwords(str_replace('_', ' ', $attributeName)));
                    $obj->{$method}($attributeValue);
                }

            }
            $results[$obj->getId()] = $obj;
        }

        return $results;
    }