-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error with chunk() #12
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a bug when using chunk on an Eloquent model instead of get.
Laravel calls a function enforceOrderBy that orders the query based on the primary key.
You can circumvent this by adding your own orderBy but perhaps you could override the getQualifiedKeyName, qualifyColumn or the getKeyName function to prevent this from being necessary?
The text was updated successfully, but these errors were encountered: