1 | <?php |
||
25 | class RaLocationRepository extends EntityRepository |
||
26 | { |
||
27 | /** |
||
28 | * @param RaLocationQuery $query |
||
29 | * @return null|RaLocation[] |
||
30 | */ |
||
31 | public function search(RaLocationQuery $query) |
||
32 | { |
||
33 | return $this->getEntityManager()->createQueryBuilder() |
||
34 | ->select('rl') |
||
35 | ->from('Surfnet\StepupMiddleware\ApiBundle\Configuration\Entity\RaLocation', 'rl') |
||
36 | ->where('rl.institution = :institution') |
||
37 | ->setParameter('institution', $query->institution->getInstitution()) |
||
38 | ->getQuery() |
||
39 | ->getResult(); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param RaLocation $raLocation |
||
44 | */ |
||
45 | public function save(RaLocation $raLocation) |
||
51 | } |
||
52 |