1 | <?php |
||
26 | class RaCandidateRepository extends EntityRepository |
||
27 | { |
||
28 | /** |
||
29 | * @param RaCandidate $raCandidate |
||
30 | * @return void |
||
31 | */ |
||
32 | public function save(RaCandidate $raCandidate) |
||
37 | |||
38 | /** |
||
39 | * @param IdentityId $identityId |
||
40 | * @return void |
||
41 | */ |
||
42 | public function removeByIdentityId(IdentityId $identityId) |
||
53 | |||
54 | /** |
||
55 | * @param string[] $nameIds |
||
56 | * @return void |
||
57 | */ |
||
58 | public function removeByNameIds($nameIds) |
||
59 | { |
||
60 | $raCandidates = $this->findByNameIds($nameIds); |
||
61 | |||
62 | $em = $this->getEntityManager(); |
||
63 | foreach ($raCandidates as $raCandidate) { |
||
64 | $em->remove($raCandidate); |
||
65 | } |
||
66 | |||
67 | $em->flush(); |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @param RaCandidateQuery $query |
||
72 | * @return \Doctrine\ORM\Query |
||
73 | */ |
||
74 | public function createSearchQuery(RaCandidateQuery $query) |
||
94 | |||
95 | /** |
||
96 | * @param string[] $sraaList |
||
97 | * @return RaCandidate[] |
||
98 | */ |
||
99 | public function findByNameIds(array $sraaList) |
||
107 | |||
108 | /** |
||
109 | * @param string $identityId |
||
110 | * @return null|RaCandidate |
||
111 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
112 | */ |
||
113 | public function findByIdentityId($identityId) |
||
121 | } |
||
122 |