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

[9.x] Allow chunkById on Arrays, as well as Models #43666

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

BennyC
Copy link
Contributor

@BennyC BennyC commented Aug 11, 2022

This PR allows chunkById with PDO_ASSOC results from the Builder.

I believe this is a very niche scenario, and understand a rejection on this PR. On projects I've previously (and currently) worked on, I've had scenarios where we're using PDO_ASSOC as the fetch mode.

This change would allow others to chunkById in either scenario, handling Models/objects or associative arrays.

@laravel laravel deleted a comment from TheGlenn88 Aug 12, 2022
@taylorotwell taylorotwell merged commit 8cde478 into laravel:9.x Aug 12, 2022
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