1 | <?php |
||
16 | class RepertoireSeasonRepository extends ServiceEntityRepository |
||
17 | { |
||
18 | 4 | public function __construct(ManagerRegistry $registry) |
|
22 | |||
23 | /** |
||
24 | * @return array|RepertoireSeason[] |
||
25 | */ |
||
26 | 1 | public function findAllNotEmpty(): array |
|
46 | |||
47 | public function findCurrentSeason(): ?RepertoireSeason |
||
53 | |||
54 | public function findOneByNumber($number) |
||
60 | |||
61 | // /** |
||
62 | // * @return RepertoireSeason[] Returns an array of RepertoireSeason objects |
||
63 | // */ |
||
64 | /* |
||
65 | public function findByExampleField($value) |
||
66 | { |
||
67 | return $this->createQueryBuilder('r') |
||
68 | ->andWhere('r.exampleField = :val') |
||
69 | ->setParameter('val', $value) |
||
70 | ->orderBy('r.id', 'ASC') |
||
71 | ->setMaxResults(10) |
||
72 | ->getQuery() |
||
73 | ->getResult() |
||
74 | ; |
||
75 | } |
||
76 | */ |
||
77 | |||
78 | /* |
||
79 | public function findOneBySomeField($value): ?RepertoireSeason |
||
80 | { |
||
81 | return $this->createQueryBuilder('r') |
||
82 | ->andWhere('r.exampleField = :val') |
||
83 | ->setParameter('val', $value) |
||
84 | ->getQuery() |
||
85 | ->getOneOrNullResult() |
||
86 | ; |
||
87 | } |
||
88 | */ |
||
89 | } |
||
90 |