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

Overriding createQuery doesn't seem to be a thing anymore #8131

Closed vulkanosaure closed 11 months ago

vulkanosaure commented 11 months ago

I want to modify the list query, after spending an hour searching google, the consensus seems to be overriding the createQuery, even the sonata official documentation states so, but in my bundle version4.28, that method is final and overriding doesn't seem to be possible, so i assume this is probably a recent change.

Has there been any update in the documentation regarding that breaking change ?

zyberspace commented 11 months ago

Hey @vulkanosaure ,

it's configureQuery now: https://docs.sonata-project.org/projects/SonataAdminBundle/en/4.x/reference/action_list/#customizing-the-query-used-to-generate-the-list :)

vulkanosaure commented 11 months ago

Ok thanks !

On Wed, 29 Nov 2023, 13:57 Eric Enold, @.***> wrote:

Hey @vulkanosaure https://github.com/vulkanosaure ,

it's configureQuery now: https://docs.sonata-project.org/projects/SonataAdminBundle/en/4.x/reference/action_list/#customizing-the-query-used-to-generate-the-list :)

— Reply to this email directly, view it on GitHub https://github.com/sonata-project/SonataAdminBundle/issues/8131#issuecomment-1831320583, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGJ2XGR24WLLRHKQZPMFZDYG3MGRAVCNFSM6AAAAAA76ZKBLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZRGMZDANJYGM . You are receiving this because you were mentioned.Message ID: @.***>