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