-
-
Notifications
You must be signed in to change notification settings - Fork 918
Issues/1246 #1323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues/1246 #1323
Conversation
@@ -24,7 +23,7 @@ | |||
* @author Vincent Chalamon <[email protected]> | |||
* | |||
* @ApiResource(attributes={ | |||
* "order"={"name", "DESC"} | |||
* "order"={"bar": "ASC", "name": "DESC"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nitpicking 😬: it would be great to also allow "order"={"bar", "name"}
(that would be equivalent to "order"={"bar": "ASC", "name": "ASC"}
. It's just some syntactic sugar but it improves the overall DX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dunglas Could it also be interesting to order by association property, like dummy.name
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely. In another PR?
Thanks @vincentchalamon |
* Fix api-platform#1246 after merge * Fix api-platform#1246: add default order, allow multiple orders with optional direction
Uh oh!
There was an error while loading. Please reload this page.