@@ 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 | { |
@@ 113-121 (lines=9) @@ | ||
110 | * @param IdentityId $identityId |
|
111 | * @return void |
|
112 | */ |
|
113 | public function removeByIdentityId(IdentityId $identityId) |
|
114 | { |
|
115 | $this->getEntityManager()->createQueryBuilder() |
|
116 | ->delete($this->_entityName, 'al') |
|
117 | ->where('al.identityId = :identityId') |
|
118 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
119 | ->getQuery() |
|
120 | ->execute(); |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * @param AuditLogEntry $entry |
@@ 154-162 (lines=9) @@ | ||
151 | ->getSingleResult(); |
|
152 | } |
|
153 | ||
154 | public function removeByIdentityId(IdentityId $identityId) |
|
155 | { |
|
156 | $this->getEntityManager()->createQueryBuilder() |
|
157 | ->delete($this->_entityName, 'i') |
|
158 | ->where('i.id = :identityId') |
|
159 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
160 | ->getQuery() |
|
161 | ->execute(); |
|
162 | } |
|
163 | ||
164 | /** |
|
165 | * @param Institution $institution |
@@ 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 |