@@ 244-253 (lines=10) @@ | ||
241 | * @param IdentityId $identityId |
|
242 | * @return void |
|
243 | */ |
|
244 | public function removeByIdentityId(IdentityId $identityId) |
|
245 | { |
|
246 | $this->getEntityManager()->createQueryBuilder() |
|
247 | ->delete($this->_entityName, 'ral') |
|
248 | ->where('ral.identityId = :identityId') |
|
249 | ->andWhere('ral.raInstitution = :institution') |
|
250 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
251 | ->getQuery() |
|
252 | ->execute(); |
|
253 | } |
|
254 | ||
255 | /** |
|
256 | * @param IdentityId $identityId |
|
@@ 260-270 (lines=11) @@ | ||
257 | * @param Institution $raInstitution |
|
258 | * @return void |
|
259 | */ |
|
260 | public function removeByIdentityIdAndRaInstitution(IdentityId $identityId, Institution $raInstitution) |
|
261 | { |
|
262 | $this->getEntityManager()->createQueryBuilder() |
|
263 | ->delete($this->_entityName, 'ral') |
|
264 | ->where('ral.identityId = :identityId') |
|
265 | ->andWhere('ral.raInstitution = :institution') |
|
266 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
267 | ->setParameter('institution', $raInstitution) |
|
268 | ->getQuery() |
|
269 | ->execute(); |
|
270 | } |
|
271 | ||
272 | /** |
|
273 | * @param IdentityId $identityId |
|
@@ 277-287 (lines=11) @@ | ||
274 | * @param Institution $institution |
|
275 | * @return void |
|
276 | */ |
|
277 | public function removeByIdentityIdAndInstitution(IdentityId $identityId, Institution $institution) |
|
278 | { |
|
279 | $this->getEntityManager()->createQueryBuilder() |
|
280 | ->delete($this->_entityName, 'ral') |
|
281 | ->where('ral.identityId = :identityId') |
|
282 | ->andWhere('ral.institution = :institution') |
|
283 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
284 | ->setParameter('institution', $institution) |
|
285 | ->getQuery() |
|
286 | ->execute(); |
|
287 | } |
|
288 | } |
|
289 |