public function getQueryRegistration(Convention $convention)
 {
     $qb = $this->createQueryBuilder('registration');
     $alias = current($qb->getRootAliases());
     $qb->andWhere($qb->expr()->eq($alias . '.convention', $convention->getId()));
     return $qb;
 }
 public function getQueryConvention(Convention $convention)
 {
     $qb = $this->createQueryBuilder('convention');
     return $qb->where('convention.id=:id')->setParameter('id', $convention->getId());
 }