Finished
This commit is contained in:
parent
0f130c6453
commit
ea41c3cccc
@ -16,28 +16,28 @@ class MissionRepository extends ServiceEntityRepository
|
||||
parent::__construct($registry, Mission::class);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @return Mission[] Returns an array of Mission objects
|
||||
// */
|
||||
// public function findByExampleField($value): array
|
||||
// {
|
||||
// return $this->createQueryBuilder('m')
|
||||
// ->andWhere('m.exampleField = :val')
|
||||
// ->setParameter('val', $value)
|
||||
// ->orderBy('m.id', 'ASC')
|
||||
// ->setMaxResults(10)
|
||||
// ->getQuery()
|
||||
// ->getResult()
|
||||
// ;
|
||||
// }
|
||||
/**
|
||||
* @return Mission[] Returns an array of Mission objects
|
||||
*/
|
||||
public function findByExampleField($value): array
|
||||
{
|
||||
return $this->createQueryBuilder('m')
|
||||
->andWhere('m.exampleField = :val')
|
||||
->setParameter('val', $value)
|
||||
->orderBy('m.id', 'ASC')
|
||||
->setMaxResults(10)
|
||||
->getQuery()
|
||||
->getResult()
|
||||
;
|
||||
}
|
||||
|
||||
// public function findOneBySomeField($value): ?Mission
|
||||
// {
|
||||
// return $this->createQueryBuilder('m')
|
||||
// ->andWhere('m.exampleField = :val')
|
||||
// ->setParameter('val', $value)
|
||||
// ->getQuery()
|
||||
// ->getOneOrNullResult()
|
||||
// ;
|
||||
// }
|
||||
public function findOneBySomeField($value): ?Mission
|
||||
{
|
||||
return $this->createQueryBuilder('m')
|
||||
->andWhere('m.exampleField = :val')
|
||||
->setParameter('val', $value)
|
||||
->getQuery()
|
||||
->getOneOrNullResult()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user