public function getAuthorType($id) { $qb = $this->createQueryBuilder('at')->where('at.id = :id')->setParameter('id', $id); return $qb->getQuery(); }