createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->orderBy('a.id', 'ASC') ->setMaxResults(10) ->getQuery() ->getResult() ; } */ /* public function findOneBySomeField($value): ?AGridRow { return $this->createQueryBuilder('a') ->andWhere('a.exampleField = :val') ->setParameter('val', $value) ->getQuery() ->getOneOrNullResult() ; } */ public function findOneByCol($value): ?AGridRow { return $this->getEntityManager()->createQuery('SELECT r FROM AGridBundle\Entity\AGridRow r WHERE r.cols = :value') // ->Where('a.cols LIKE :value') ->setParameter('value', $value) ->execute() ; } public function getRedist(){ } }