| @@ 227-239 (lines=13) @@ | ||
| 224 | * |
|
| 225 | * @return bool |
|
| 226 | */ |
|
| 227 | public function removeAllFromCircle(Circle $circle) { |
|
| 228 | $qb = $this->db->getQueryBuilder(); |
|
| 229 | $qb->delete(self::TABLENAME) |
|
| 230 | ->where( |
|
| 231 | $qb->expr() |
|
| 232 | ->eq('circle_id', $qb->createNamedParameter($circle->getId())) |
|
| 233 | ); |
|
| 234 | ||
| 235 | $qb->execute(); |
|
| 236 | ||
| 237 | return true; |
|
| 238 | ||
| 239 | } |
|
| 240 | } |
|
| 241 | ||
| 242 | ||
| @@ 319-330 (lines=12) @@ | ||
| 316 | * |
|
| 317 | * @param Circle $circle |
|
| 318 | */ |
|
| 319 | public function destroy(Circle $circle) { |
|
| 320 | $qb = $this->db->getQueryBuilder(); |
|
| 321 | $qb->delete(self::TABLENAME) |
|
| 322 | ->where( |
|
| 323 | $qb->expr() |
|
| 324 | ->eq( |
|
| 325 | 'id', $qb->createNamedParameter($circle->getId()) |
|
| 326 | ) |
|
| 327 | ); |
|
| 328 | ||
| 329 | $qb->execute(); |
|
| 330 | } |
|
| 331 | ||
| 332 | ||
| 333 | /** |
|