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