| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | private function deleteSubComponents(AbstractComponent $component, EntityManagerInterface $entityManager): void |
||
| 42 | { |
||
| 43 | foreach ($component->getComponentGroups() as $componentGroup) { |
||
| 44 | $entityManager->remove($componentGroup); |
||
| 45 | foreach ($componentGroup->getComponentLocations() as $componentLocation) { |
||
| 46 | $component = $componentLocation->getComponent(); |
||
| 47 | $entityManager->remove($componentLocation); |
||
| 48 | $entityManager->remove($component); |
||
| 49 | $this->deleteSubComponents($component, $entityManager); |
||
| 50 | } |
||
| 54 |