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

[5.4] Do not call enforceOrderBy in chunkById #16513

Merged
merged 1 commit into from
Nov 22, 2016
Merged

[5.4] Do not call enforceOrderBy in chunkById #16513

merged 1 commit into from
Nov 22, 2016

Conversation

vlakoff
Copy link
Contributor

@vlakoff vlakoff commented Nov 22, 2016

Fixes an overlook from #16283.

chunkById is already applying an "order by" clause, see forPageAfterId in Builder.php. Therefore, we don't have to, and should not, require an "order by" beforehand.


Note: though enforceOrderBy is now used at only one place, I'm not inlining it in chunk, this way the code of chunk is cleaner, and users can redefine enforceOrderBy.

@taylorotwell taylorotwell merged commit 368937a into laravel:master Nov 22, 2016
@vlakoff vlakoff deleted the enforceOrderBy branch November 24, 2016 17:40
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.

2 participants