From a12065c52f05103c42a9c100e133a567255d6183 Mon Sep 17 00:00:00 2001 From: Erwan <39167751+Wanere@users.noreply.github.com> Date: Tue, 29 Oct 2019 16:17:12 +0100 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 732592e..30738d0 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ $builder->add('content', PanelType::class, [ #### Troubleshooting block deletion Blocks are only removed on the `preUpdate` of the parent entity: if the only modification done on the form is the deletion of a block, the preUpdate event is not triggered, so the block will not be removed. + To solve this, you need to create an event on `preUpdate` (in your Sonata Admin for example), to be triggered when you save the form. ```php public function preUpdate($object)