| @@ 217-229 (lines=13) @@ | ||
| 214 | * |
|
| 215 | * @return bool |
|
| 216 | */ |
|
| 217 | public function removeAllFromCircle(Circle $circle) { |
|
| 218 | $qb = $this->db->getQueryBuilder(); |
|
| 219 | $qb->delete(self::TABLENAME) |
|
| 220 | ->where( |
|
| 221 | $qb->expr() |
|
| 222 | ->eq('circle_id', $qb->createNamedParameter($circle->getId())) |
|
| 223 | ); |
|
| 224 | ||
| 225 | $qb->execute(); |
|
| 226 | ||
| 227 | return true; |
|
| 228 | ||
| 229 | } |
|
| 230 | } |
|
| 231 | ||
| 232 | ||
| @@ 349-360 (lines=12) @@ | ||
| 346 | * |
|
| 347 | * @param Circle $circle |
|
| 348 | */ |
|
| 349 | public function destroy(Circle $circle) { |
|
| 350 | $qb = $this->db->getQueryBuilder(); |
|
| 351 | $qb->delete(self::TABLENAME) |
|
| 352 | ->where( |
|
| 353 | $qb->expr() |
|
| 354 | ->eq( |
|
| 355 | 'id', $qb->createNamedParameter($circle->getId()) |
|
| 356 | ) |
|
| 357 | ); |
|
| 358 | ||
| 359 | $qb->execute(); |
|
| 360 | } |
|
| 361 | ||
| 362 | ||
| 363 | /** |
|