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;
}