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