Bravo3\Orm\Query\QueryResult::hydrateEntity PHP Method

hydrateEntity() private method

Hydrate an entity
private hydrateEntity ( string $id )
$id string
    private function hydrateEntity($id)
    {
        try {
            $this->entities[$id] = $this->entity_manager->retrieve($this->query->getClassName(), $id, $this->use_cache);
        } catch (NotFoundException $e) {
            throw new CorruptedEntityException("Entity in sorted index not found: " . $e->getMessage(), 0, $e);
        }
        return $this;
    }