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