|
|
|
|
|
|
|
|
$this->executeDynamicMethod('update<EntityName>Entity', [$entity, $editForm]); |
|
|
$this->executeDynamicMethod('update<EntityName>Entity', [$entity, $editForm]); |
|
|
$this->dispatch(EasyAdminEvents::POST_UPDATE, ['entity' => $entity]); |
|
|
$this->dispatch(EasyAdminEvents::POST_UPDATE, ['entity' => $entity]); |
|
|
|
|
|
|
|
|
return $this->redirectToReferrer(); |
|
|
|
|
|
|
|
|
$this->utils->addFlash('success', 'Produit sauvegardé') ; |
|
|
|
|
|
return $this->redirectToRoute('easyadmin', ['entity' => 'ProductFamily', 'action' => 'edit', 'id' => $id]) ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$this->dispatch(EasyAdminEvents::POST_EDIT); |
|
|
$this->dispatch(EasyAdminEvents::POST_EDIT); |