public function getEntities() { $query = $this->queryBuilder->getQuery(); foreach ($this->hints as $name => $value) { $query->setHint($name, $value); } return $query->execute(); }