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