| @@ 63-71 (lines=9) @@ | ||
| 60 | return $queryBuilder->getQuery(); |
|
| 61 | } |
|
| 62 | ||
| 63 | public function removeByIdentityId(IdentityId $identityId) |
|
| 64 | { |
|
| 65 | $this->getEntityManager()->createQueryBuilder() |
|
| 66 | ->delete($this->_entityName, 'sf') |
|
| 67 | ->where('sf.identityId = :identityId') |
|
| 68 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 69 | ->getQuery() |
|
| 70 | ->execute(); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * @param UnverifiedSecondFactor $secondFactor |
|
| @@ 58-66 (lines=9) @@ | ||
| 55 | return $queryBuilder->getQuery(); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function removeByIdentityId(IdentityId $identityId) |
|
| 59 | { |
|
| 60 | $this->getEntityManager()->createQueryBuilder() |
|
| 61 | ->delete($this->_entityName, 'sf') |
|
| 62 | ->where('sf.identityId = :identityId') |
|
| 63 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 64 | ->getQuery() |
|
| 65 | ->execute(); |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @param VettedSecondFactor $secondFactor |
|
| @@ 55-63 (lines=9) @@ | ||
| 52 | return $this->findBy(['identityId' => (string) $identityId]); |
|
| 53 | } |
|
| 54 | ||
| 55 | public function removeByIdentityId(IdentityId $identityId) |
|
| 56 | { |
|
| 57 | $this->getEntityManager()->createQueryBuilder() |
|
| 58 | ->delete($this->_entityName, 'sf') |
|
| 59 | ->where('sf.identityId = :identityId') |
|
| 60 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 61 | ->getQuery() |
|
| 62 | ->execute(); |
|
| 63 | } |
|
| 64 | ||
| 65 | /** |
|
| 66 | * @param SecondFactor $secondFactor |
|
| @@ 155-163 (lines=9) @@ | ||
| 152 | * @param IdentityId $identityId |
|
| 153 | * @return void |
|
| 154 | */ |
|
| 155 | public function removeByIdentityId(IdentityId $identityId) |
|
| 156 | { |
|
| 157 | $this->getEntityManager()->createQueryBuilder() |
|
| 158 | ->delete($this->_entityName, 'rasf') |
|
| 159 | ->where('rasf.identityId = :identityId') |
|
| 160 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 161 | ->getQuery() |
|
| 162 | ->execute(); |
|
| 163 | } |
|
| 164 | ||
| 165 | public function save(RaSecondFactor $secondFactor) |
|
| 166 | { |
|
| @@ 137-145 (lines=9) @@ | ||
| 134 | return $queryBuilder->getQuery(); |
|
| 135 | } |
|
| 136 | ||
| 137 | public function removeByIdentityId(IdentityId $identityId) |
|
| 138 | { |
|
| 139 | $this->getEntityManager()->createQueryBuilder() |
|
| 140 | ->delete($this->_entityName, 'sf') |
|
| 141 | ->where('sf.identityId = :identityId') |
|
| 142 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 143 | ->getQuery() |
|
| 144 | ->execute(); |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * @param VerifiedSecondFactor $secondFactor |
|
| @@ 154-163 (lines=10) @@ | ||
| 151 | * @param IdentityId $identityId |
|
| 152 | * @return void |
|
| 153 | */ |
|
| 154 | public function removeByIdentityId(IdentityId $identityId) |
|
| 155 | { |
|
| 156 | $this->getEntityManager()->createQueryBuilder() |
|
| 157 | ->delete($this->_entityName, 'ral') |
|
| 158 | ->where('ral.identityId = :identityId') |
|
| 159 | ->andWhere('ral.raInstitution = :institution') |
|
| 160 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 161 | ->getQuery() |
|
| 162 | ->execute(); |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * @param IdentityId $identityId |
|
| @@ 170-180 (lines=11) @@ | ||
| 167 | * @param Institution $raInstitution |
|
| 168 | * @return void |
|
| 169 | */ |
|
| 170 | public function removeByIdentityIdAndRaInstitution(IdentityId $identityId, Institution $raInstitution) |
|
| 171 | { |
|
| 172 | $this->getEntityManager()->createQueryBuilder() |
|
| 173 | ->delete($this->_entityName, 'ral') |
|
| 174 | ->where('ral.identityId = :identityId') |
|
| 175 | ->andWhere('ral.raInstitution = :institution') |
|
| 176 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 177 | ->setParameter('institution', $raInstitution) |
|
| 178 | ->getQuery() |
|
| 179 | ->execute(); |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * @param IdentityId $identityId |
|
| @@ 187-197 (lines=11) @@ | ||
| 184 | * @param Institution $institution |
|
| 185 | * @return void |
|
| 186 | */ |
|
| 187 | public function removeByIdentityIdAndInstitution(IdentityId $identityId, Institution $institution) |
|
| 188 | { |
|
| 189 | $this->getEntityManager()->createQueryBuilder() |
|
| 190 | ->delete($this->_entityName, 'ral') |
|
| 191 | ->where('ral.identityId = :identityId') |
|
| 192 | ->andWhere('ral.institution = :institution') |
|
| 193 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 194 | ->setParameter('institution', $institution) |
|
| 195 | ->getQuery() |
|
| 196 | ->execute(); |
|
| 197 | } |
|
| 198 | } |
|
| 199 | ||
| @@ 118-126 (lines=9) @@ | ||
| 115 | * @param IdentityId $identityId |
|
| 116 | * @return void |
|
| 117 | */ |
|
| 118 | public function removeByIdentityId(IdentityId $identityId) |
|
| 119 | { |
|
| 120 | $this->getEntityManager()->createQueryBuilder() |
|
| 121 | ->delete($this->_entityName, 'al') |
|
| 122 | ->where('al.identityId = :identityId') |
|
| 123 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 124 | ->getQuery() |
|
| 125 | ->execute(); |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * @param AuditLogEntry $entry |
|
| @@ 163-171 (lines=9) @@ | ||
| 160 | ->getSingleResult(); |
|
| 161 | } |
|
| 162 | ||
| 163 | public function removeByIdentityId(IdentityId $identityId) |
|
| 164 | { |
|
| 165 | $this->getEntityManager()->createQueryBuilder() |
|
| 166 | ->delete($this->_entityName, 'i') |
|
| 167 | ->where('i.id = :identityId') |
|
| 168 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
| 169 | ->getQuery() |
|
| 170 | ->execute(); |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * @param Institution $institution |
|