1 | <?php |
||
38 | class RaCandidateRepository extends EntityRepository |
||
39 | { |
||
40 | /** |
||
41 | * @var InstitutionAuthorizationRepositoryFilter |
||
42 | */ |
||
43 | private $authorizationRepositoryFilter; |
||
44 | |||
45 | public function __construct( |
||
46 | EntityManager $em, |
||
47 | Mapping\ClassMetadata $class, |
||
48 | InstitutionAuthorizationRepositoryFilter $authorizationRepositoryFilter |
||
49 | ) { |
||
50 | parent::__construct($em, $class); |
||
51 | $this->authorizationRepositoryFilter = $authorizationRepositoryFilter; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param RaCandidate $raCandidate |
||
56 | * @return void |
||
57 | */ |
||
58 | public function merge(RaCandidate $raCandidate) |
||
59 | { |
||
60 | $raCandidate = $this->getEntityManager()->merge($raCandidate); |
||
61 | $this->getEntityManager()->persist($raCandidate); |
||
62 | $this->getEntityManager()->flush(); |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @param IdentityId $identityId |
||
67 | * @return void |
||
68 | */ |
||
69 | public function removeByIdentityId(IdentityId $identityId) |
||
80 | |||
81 | /** |
||
82 | * @param Institution $institution |
||
83 | * @param InstitutionCollection $raInstitutions |
||
84 | * @return void |
||
85 | */ |
||
86 | public function removeInstitutionsNotInList(Institution $institution, InstitutionCollection $raInstitutions) |
||
103 | |||
104 | /** |
||
105 | * @param Institution $raInstitution |
||
106 | * @return void |
||
107 | */ |
||
108 | public function removeByRaInstitution(Institution $raInstitution) |
||
123 | |||
124 | /** |
||
125 | * @param IdentityId $identityId |
||
126 | * @param Institution $raInstitution |
||
127 | * @return void |
||
128 | */ |
||
129 | public function removeByIdentityIdAndRaInstitution(IdentityId $identityId, Institution $raInstitution) |
||
140 | |||
141 | /** |
||
142 | * @param string[] $nameIds |
||
143 | * @return void |
||
144 | */ |
||
145 | public function removeByNameIds($nameIds) |
||
156 | |||
157 | /** |
||
158 | * @param RaCandidateQuery $query |
||
159 | * @return \Doctrine\ORM\Query |
||
160 | */ |
||
161 | public function createSearchQuery(RaCandidateQuery $query) |
||
197 | |||
198 | /** |
||
199 | * @param string[] $sraaList |
||
200 | * @return RaCandidate[] |
||
201 | */ |
||
202 | public function findByNameIds(array $sraaList) |
||
210 | |||
211 | /** |
||
212 | * @param string $identityId |
||
213 | * @return null|RaCandidate |
||
214 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
215 | */ |
||
216 | public function findByIdentityId($identityId) |
||
224 | |||
225 | /** |
||
226 | * @param string $identityId |
||
227 | * @param Institution $raInstitution |
||
228 | * @return null|RaCandidate |
||
229 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
230 | */ |
||
231 | public function findByIdentityIdAndRaInstitution($identityId, Institution $raInstitution) |
||
241 | |||
242 | /** |
||
243 | * @param Institution $raInstitution |
||
244 | * @return ArrayCollection|RaCandidate[] |
||
|
|||
245 | * @throws \Doctrine\ORM\NonUniqueResultException |
||
246 | */ |
||
247 | public function findByRaInstitution(Institution $raInstitution) |
||
255 | } |
||
256 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.