@@ -44,8 +44,9 @@ |
||
44 | 44 | |
45 | 45 | if (method_exists($service, $method)) { |
46 | 46 | $entity = $service->$method($entity); |
47 | - if ('afterPersist' === $method) |
|
48 | - $this->manager->refresh($entity); |
|
47 | + if ('afterPersist' === $method) { |
|
48 | + $this->manager->refresh($entity); |
|
49 | + } |
|
49 | 50 | } |
50 | 51 | //} |
51 | 52 | } |