diff --git a/README.md b/README.md index ebf7b95..30738d0 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,9 @@ $builder->add('content', PanelType::class, [ ``` #### Troubleshooting block deletion -For some unknown reason, blocks are not properly deleted on saving the form, probably because no update is detected. 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. +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) {