Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
26 | class OrganisationRepository extends EntityRepository |
||
27 | { |
||
28 | /** |
||
29 | * @return Organisation[] |
||
30 | */ |
||
31 | public function findHidden() |
||
32 | { |
||
33 | $qb = $this->createQueryBuilder('u'); |
||
34 | $qb->where('u.hiddenAt IS NOT NULL') |
||
35 | ->orderBy('u.name', 'ASC'); |
||
36 | |||
37 | return $qb->getQuery()->getResult(); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return Organisation[] |
||
42 | */ |
||
43 | public function findActive() |
||
50 | } |
||
51 | } |
||
52 |