@@ -54,8 +54,9 @@ |
||
| 54 | 54 | if (method_exists($service, $method)) { |
| 55 | 55 | $newEntity = $service->$method($entity); |
| 56 | 56 | |
| 57 | - if ('postPersist' === $method && $newEntity) |
|
| 58 | - $this->manager->refresh($newEntity); |
|
| 57 | + if ('postPersist' === $method && $newEntity) { |
|
| 58 | + $this->manager->refresh($newEntity); |
|
| 59 | + } |
|
| 59 | 60 | } |
| 60 | 61 | } |
| 61 | 62 | return $entity; |