@@ 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 |
@@ 148-157 (lines=10) @@ | ||
145 | * @param IdentityId $identityId |
|
146 | * @return void |
|
147 | */ |
|
148 | public function removeByIdentityId(IdentityId $identityId) |
|
149 | { |
|
150 | $this->getEntityManager()->createQueryBuilder() |
|
151 | ->delete($this->_entityName, 'ral') |
|
152 | ->where('ral.identityId = :identityId') |
|
153 | ->andWhere('ral.raInstitution = :institution') |
|
154 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
155 | ->getQuery() |
|
156 | ->execute(); |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * @param IdentityId $identityId |
|
@@ 164-174 (lines=11) @@ | ||
161 | * @param Institution $raInstitution |
|
162 | * @return void |
|
163 | */ |
|
164 | public function removeByIdentityIdAndRaInstitution(IdentityId $identityId, Institution $raInstitution) |
|
165 | { |
|
166 | $this->getEntityManager()->createQueryBuilder() |
|
167 | ->delete($this->_entityName, 'ral') |
|
168 | ->where('ral.identityId = :identityId') |
|
169 | ->andWhere('ral.raInstitution = :institution') |
|
170 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
171 | ->setParameter('institution', $raInstitution) |
|
172 | ->getQuery() |
|
173 | ->execute(); |
|
174 | } |
|
175 | ||
176 | /** |
|
177 | * @param IdentityId $identityId |
|
@@ 181-191 (lines=11) @@ | ||
178 | * @param Institution $institution |
|
179 | * @return void |
|
180 | */ |
|
181 | public function removeByIdentityIdAndInstitution(IdentityId $identityId, Institution $institution) |
|
182 | { |
|
183 | $this->getEntityManager()->createQueryBuilder() |
|
184 | ->delete($this->_entityName, 'ral') |
|
185 | ->where('ral.identityId = :identityId') |
|
186 | ->andWhere('ral.institution = :institution') |
|
187 | ->setParameter('identityId', $identityId->getIdentityId()) |
|
188 | ->setParameter('institution', $institution) |
|
189 | ->getQuery() |
|
190 | ->execute(); |
|
191 | } |
|
192 | } |
|
193 |