| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function process( |
||
| 24 | $data, |
||
| 25 | Operation $operation, |
||
| 26 | array $uriVariables = [], |
||
| 27 | array $context = [] |
||
| 28 | ): void { |
||
| 29 | if (!$data instanceof CStudentPublication) { |
||
| 30 | return; |
||
| 31 | } |
||
| 32 | |||
| 33 | foreach ($data->getChildren() as $child) { |
||
| 34 | $this->entityManager->remove($child); |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->entityManager->remove($data); |
||
| 38 | $this->entityManager->flush(); |
||
| 39 | } |
||
| 41 |