-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Add incorrect field to model in storage after touching her #27791
Comments
Isn't this an issue with the other package, i.e. see mongodb/laravel-mongodb#1720 ? |
Package jenssegers/laravel-mongodb inherits all parts of eloquent models, that i think to fix this problem in laravel |
@mfn AFAIK this is the line that is executed before the whole thing collapse: https://github.com/mongodb/mongo-php-library/blob/1.4.2/src/Operation/Update.php#L179 |
Seems like this needs to be fixed upstream. |
@driesvints, what do you mean under upstream? |
@driesvints, What is reason this [changes]?(6484744) |
Here's the PR: #26997 |
I use library https://github.com/jenssegers/laravel-mongodb and if model was touched by method
touch
in collection to document will added new fieldcollection_name.updated_at
and original fieldupdated_at
stay with old value. Broken commit 6484744.Steps To Reproduce:
Create model, save her, and touch after . Example in tests
framework/tests/Database/DatabaseEloquentIntegrationTest.php
Line 1319 in e6c8aa0
The text was updated successfully, but these errors were encountered: