Skip to content

How to use OrderFilter correctly #2355

Answered by alanpoulain
amigian74 asked this question in Q&A
Discussion options

You must be logged in to vote

If you are using API Platform 2.7 in compatibility mode, you are using the wrong filter.
You should use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter.
If you want to use the new filter, you need to disable the compatibility layer: https://api-platform.com/docs/core/upgrade-guide/

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@amigian74
Comment options

Answer selected by amigian74
Comment options

You must be logged in to vote
1 reply
@amigian74
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants