omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
251 stars 113 forks source link

Disable the softdeleteable filter for a specific datatable #320

Closed saturit closed 4 months ago

saturit commented 7 months ago

Hi. Is there any way to disable the softdeleteable filter for a specific datatable? I'm trying to disable it, but obviously it doesn't work via ORMAdapter. I have no idea whether this is a bug or a focus.

roublarstar commented 7 months ago

Hi, you could use the "ORMAdapterEvents::PRE_QUERY" event to access the entity manager and deactivate the doctrine behavior. However, there is no "ORMAdapterEvents::POST_QUERY" event. But I think it does the job, only the ajax call will be impacted by this deactivation. image

github-actions[bot] commented 5 months ago

Stale issue message