This commit is contained in:
pressatl 2024-12-20 09:08:48 +01:00
parent 0f130c6453
commit ea41c3cccc

View File

@ -16,28 +16,28 @@ class MissionRepository extends ServiceEntityRepository
parent::__construct($registry, Mission::class); parent::__construct($registry, Mission::class);
} }
// /** /**
// * @return Mission[] Returns an array of Mission objects * @return Mission[] Returns an array of Mission objects
// */ */
// public function findByExampleField($value): array public function findByExampleField($value): array
// { {
// return $this->createQueryBuilder('m') return $this->createQueryBuilder('m')
// ->andWhere('m.exampleField = :val') ->andWhere('m.exampleField = :val')
// ->setParameter('val', $value) ->setParameter('val', $value)
// ->orderBy('m.id', 'ASC') ->orderBy('m.id', 'ASC')
// ->setMaxResults(10) ->setMaxResults(10)
// ->getQuery() ->getQuery()
// ->getResult() ->getResult()
// ; ;
// } }
// public function findOneBySomeField($value): ?Mission public function findOneBySomeField($value): ?Mission
// { {
// return $this->createQueryBuilder('m') return $this->createQueryBuilder('m')
// ->andWhere('m.exampleField = :val') ->andWhere('m.exampleField = :val')
// ->setParameter('val', $value) ->setParameter('val', $value)
// ->getQuery() ->getQuery()
// ->getOneOrNullResult() ->getOneOrNullResult()
// ; ;
// } }
} }