-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.2.34] Laravel throws Call to undefined method Illuminate\Database\Query\Builder::getQualifiedDeletedAtColumn() #13762
Comments
i have the same issue trying to debug it at the moment |
Why cloning the query from the parent model in https://github.com/laravel/framework/blob/5.2/src/Illuminate/Database/Eloquent/Relations/MorphTo.php#L180 It will clone the parent global scopes as well and if one of the morphed models don't implement this scope it will result in unexpected behaviour. Why not replace it with a new query of the actual morphed model it works fine for me.
You then can remove
|
@tiran133 Could you please create PR, so that things would move faster ? |
There are some other issues then... maybe someone else can help |
@ddctd143 @tiran133 Can you try this? acasar@91e9533 It passes tests and it may fix your problems as well. |
Thank you. I tried this and it works fine in my project now. |
Thanks. Tried acasar commit and it works. |
I have updated to last version and still this is happening! |
I noticed that repository not updated to #13806, but I updated composer before. What's wrong? |
It's not tagged yet - this will be in 5.2.36. |
I understand Laravel 5.2.36 will be tagged on Monday. |
Oh, Tnx. |
After updating from 5.3.33 to 5.3.34 now laravel throws:
if Model uses SoftDeletes trait. If I revert Laravel to 5.3.33 or if I disable SoftDeletes trait in my model, error disappears.
Full stacktrace:
The text was updated successfully, but these errors were encountered: