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