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