-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix Laravel 9.31 breaking update #2452
Conversation
Codecov ReportBase: 87.63% // Head: 87.65% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2452 +/- ##
============================================
+ Coverage 87.63% 87.65% +0.01%
- Complexity 677 678 +1
============================================
Files 31 31
Lines 1553 1555 +2
============================================
+ Hits 1361 1363 +2
Misses 192 192
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@The-Hasanov thank you for your solution 🙇 @Smolevich can we get this into a release soon? It's a breaking change for L9. Thanks 🙏 |
Hi all. First of all apologies that things broke for this library. I'd like to know more about what happened here. Why are string keys incremental for MongoDB? |
Problem is here https://github.com/laravel/framework/blob/9.x/src/Illuminate/Database/Eloquent/Model.php#L1209 |
Heya. I realize that but given it's a string based ID, the ID should be set as an attribute up front. Is MongoDB not doing that? How are ID's generated now? |
i don't know about technical side. But id or _id is generated on mongo side automatically. Also this id is unique and incremental. |
Thanks for that. I've sent in a PR to framework to revert this change: laravel/framework#44247 |
The MongoDB server will add an |
Thank you @driesvints 🙇♂️ |
Issue #2451