Skip to content

Conversation

@GrahamCampbell
Copy link
Collaborator

Unless we add an orderby, the rows returned by chunk are undefined, the 2nd chunk could be the same as the first chunk for instance.

Copy link
Member

Choose a reason for hiding this comment

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

id may not always be available.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeh, I know. Not sure what else we can do here.

@GrahamCampbell
Copy link
Collaborator Author

Ok, I've made another change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably be "provide"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeh, oops. Thanks. ;)

@taylorotwell taylorotwell merged commit 70d4e2d into laravel:5.2 Dec 31, 2015
@GrahamCampbell GrahamCampbell deleted the each branch December 31, 2015 17:41
@vlakoff
Copy link
Contributor

vlakoff commented Oct 30, 2016

chunk() and chunkById() methods don't have these changes, though they are basically running the same queries. This is inconsistent.

@GrahamCampbell maybe they should be modified as well for 5.4?

@GrahamCampbell
Copy link
Collaborator Author

Perhaps. Feel free to send a PR for Taylor to review. Thanks. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants