Skip to content

Fix issue with chunkById. #1317

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

Merged
merged 2 commits into from
Nov 3, 2017
Merged

Fix issue with chunkById. #1317

merged 2 commits into from
Nov 3, 2017

Conversation

DFurnes
Copy link
Contributor

@DFurnes DFurnes commented Oct 2, 2017

The chunkById method doesn't work with MongoDB, because the framework assumes that the ID will be numeric & doesn't provide an easy way for the user to override that at runtime. I was able to fix this by overriding the forPageAfterId method so that it would convert Laravel's assumed "zero" ID into an equivalent "zero" ObjectId.

I've also added a test to demonstrate the bug & fix.

@DFurnes
Copy link
Contributor Author

DFurnes commented Oct 13, 2017

@jenssegers Would you mind reviewing this when you have a chance? Thanks!

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