public function getEntity($id, $hydrationMode = AbstractQuery::HYDRATE_OBJECT)
    {
        return $this->getQueryBuilder(['id' => $id])
            ->getQuery()
            ->setMaxResults(1)
            ->getOneOrNullResult($hydrationMode);
    }