Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
35 | public function preRemove($e) |
||
36 | { |
||
37 | $entity = $e->getObject(); |
||
38 | |||
39 | if ($entity instanceof $this->className) { |
||
40 | // schedule alias removal (this needs to be done before the entity is removed and loses its id) |
||
41 | $this->container->get($this->aliaserServiceId)->removeAlias($entity, true); |
||
42 | } |
||
56 |