Uh oh!
There was an error while loading. Please reload this page.
fix: convert stdClass to array in find() getMore loop - #805
Conversation
📝 WalkthroughWalkthroughThe MongoDB adapter's find method was modified to recursively convert stdClass objects to arrays before wrapping cursor results in Document objects. This change applies the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
convertStdClassToArray()call in the MongoDB adapter'sfind()method for subsequent batch results (getMore loop)https://github.com/utopia-php/database/blob/8be16e94aee4ccdce69f1cc40a202dd783cfbd71/src/Database/Adapter/Mongo.php#L2079C1-L2083C14
Cannot use object of type stdClass as arrayerror inDocument.php:49when query results exceed the batch size (1000)Summary by CodeRabbit
Release Notes