Skip to content

Fix behaviour of "order" attribute#3472

Closed
teohhanhui wants to merge 1 commit into
api-platform:2.5from
teohhanhui:fix/order-attribute
Closed

Fix behaviour of "order" attribute#3472
teohhanhui wants to merge 1 commit into
api-platform:2.5from
teohhanhui:fix/order-attribute

Conversation

@teohhanhui

Copy link
Copy Markdown
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

/cc @soyuka

TODO:

  • Add tests

@teohhanhui teohhanhui force-pushed the fix/order-attribute branch 2 times, most recently from 0c7cba6 to 3f7c7c9 Compare March 30, 2020 17:52

if ($this->isPropertyNested($field, $resourceClass)) {
[$field] = $this->addLookupsForNestedProperty($field, $aggregationBuilder, $resourceClass);
$order = [$order];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how would this happen

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

order="id"?

@alanpoulain

Copy link
Copy Markdown
Member

Do we know what this PR is fixing?

@stale

stale Bot commented Nov 4, 2022

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the wontfix label Nov 4, 2022
@stale

stale Bot commented Jan 3, 2023

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Jan 3, 2023
@stale stale Bot closed this Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants