createQueryBuilder('t') ->andWhere('t.exampleField = :val') ->setParameter('val', $value) ->orderBy('t.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?TicketItem { return $this->createQueryBuilder('t') ->andWhere('t.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ }