Skip to content

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