sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

PostRemove & PreRemove doesnt work in template of ListAction #1314

Closed Chrysweel closed 8 years ago

Chrysweel commented 11 years ago

Hello.

I found an error.

I use the method PostRemove in my AdminController, and it works correctly.

But from template of listAction, sonata allows delete one or many rows, and in this action, the method preRemove doesnt work.

How can I to do this method works ?? Or other solution is that Sonata not show the button to delete.

Somebody can help me ? Thanks! : )

core23 commented 8 years ago

Please check this issue again and reopen if this is still active @Chrysweel

remoteclient commented 8 years ago

@Chrysweel if your livecycle events don't work from your admin controllers, you can still use symfonys entity listeners.