public function getQuery(ManagerRegistry $om, FilterBuilder $filterbuilder)
 {
     $qb = $om->getManager()->createQueryBuilder();
     $qb->select('i')->from($this->getRepository(), 'i');
     $this->buildQuery($qb);
     $filterbuilder->addFilters($qb, $this);
     return $qb;
 }
 public function getQuery(ManagerRegistry $om, FilterBuilder $filterbuilder)
 {
     $this->prefetch();
     $qb = $om->getManager()->createQueryBuilder($this->getRepository());
     $this->buildQuery($qb);
     $filterbuilder->addFilters($qb, $this);
     return $qb;
 }