protected function getHydrationQuery() { if (!$this->hydrationQuery) { throw new DoctrineSearchException('A hydration query is required for hydrating results to entities.'); } return $this->hydrationQuery; }