Conditions | 2 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function execute() |
||
28 | { |
||
29 | $entity = $this->getFromResponse('entity'); |
||
30 | |||
31 | try { |
||
32 | $this->manager->remove($entity); |
||
33 | $this->manager->flush(); |
||
34 | } catch (ORMException $exception) { |
||
35 | throw new BadRequestHttpException('Your request can not be processed', $exception); |
||
36 | } |
||
37 | |||
38 | return $this->createResponse(['response_data' => null], true, 204); |
||
39 | } |
||
46 | } |