Conditions | 2 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function execute() |
||
21 | { |
||
22 | $entity = $this->getFromResponse('entity'); |
||
23 | |||
24 | try { |
||
25 | $this->manager->remove($entity); |
||
26 | $this->manager->flush(); |
||
27 | } catch (ORMException $exception) { |
||
28 | throw new BadRequestHttpException('Your request can not be processed', $exception); |
||
29 | } |
||
30 | |||
31 | $this->createResponse(['response_data' => null], true, 204); |
||
32 | } |
||
44 | } |