Skip to content
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

[8.x] Columns in the order by list must be unique #37582

Merged
merged 6 commits into from
Jun 4, 2021

Conversation

Javdu10
Copy link
Contributor

@Javdu10 Javdu10 commented Jun 3, 2021

Sorry for the inconveniences...

See: #37505 for more context
Fixes: #37581

@BrandonSurowiec
Copy link
Contributor

@Javdu10 Would be a good idea to add a regression test using orderByRaw().

@Javdu10
Copy link
Contributor Author

Javdu10 commented Jun 3, 2021

@BrandonSurowiec done, I'm not sure what form it should have, let me know if it's correct

@BrandonSurowiec
Copy link
Contributor

@Javdu10 Looks good to me!

@driesvints
Copy link
Member

This PR was reverted because it continued to break things. See #37647

@Javdu10
Copy link
Contributor Author

Javdu10 commented Jun 10, 2021

Hello @driesvints, thank you for the notice!

@taylorotwell, that person's test pass if it's not overridable by calling order by again (see: #37505 (comment))

So what should we do?

It would be fixed if scopes are executed before applying order by clauses in the construction of the query but this requires much more knowledge than I have about the framework

@driesvints
Copy link
Member

@Javdu10 I doubt we'll be making more changes to this for the time being, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

L8.45 - Undefined index: column
4 participants