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