| @@ 215-224 (lines=10) @@ | ||
| 212 | * @param IdentityId $identityId |
|
| 213 | * @return void |
|
| 214 | */ |
|
| 215 | public function removeByIdentityId(IdentityId $identityId) |
|
| 216 | { |
|
| 217 | $this->getEntityManager()->createQueryBuilder() |
|
| 218 | ->delete($this->_entityName, 'ral') |
|
| 219 | ->where('ral.identityId = :identityId') |
|
| 220 | ->andWhere('ral.raInstitution = :institution') |
|
| 221 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 222 | ->getQuery() |
|
| 223 | ->execute(); |
|
| 224 | } |
|
| 225 | ||
| 226 | /** |
|
| 227 | * @param IdentityId $identityId |
|
| @@ 231-241 (lines=11) @@ | ||
| 228 | * @param Institution $raInstitution |
|
| 229 | * @return void |
|
| 230 | */ |
|
| 231 | public function removeByIdentityIdAndRaInstitution(IdentityId $identityId, Institution $raInstitution) |
|
| 232 | { |
|
| 233 | $this->getEntityManager()->createQueryBuilder() |
|
| 234 | ->delete($this->_entityName, 'ral') |
|
| 235 | ->where('ral.identityId = :identityId') |
|
| 236 | ->andWhere('ral.raInstitution = :institution') |
|
| 237 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 238 | ->setParameter('institution', $raInstitution) |
|
| 239 | ->getQuery() |
|
| 240 | ->execute(); |
|
| 241 | } |
|
| 242 | ||
| 243 | /** |
|
| 244 | * @param IdentityId $identityId |
|
| @@ 248-258 (lines=11) @@ | ||
| 245 | * @param Institution $institution |
|
| 246 | * @return void |
|
| 247 | */ |
|
| 248 | public function removeByIdentityIdAndInstitution(IdentityId $identityId, Institution $institution) |
|
| 249 | { |
|
| 250 | $this->getEntityManager()->createQueryBuilder() |
|
| 251 | ->delete($this->_entityName, 'ral') |
|
| 252 | ->where('ral.identityId = :identityId') |
|
| 253 | ->andWhere('ral.institution = :institution') |
|
| 254 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 255 | ->setParameter('institution', $institution) |
|
| 256 | ->getQuery() |
|
| 257 | ->execute(); |
|
| 258 | } |
|
| 259 | } |
|
| 260 | ||