-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Exception: BelongsToMany Is Not supported for hybrid query constraints! #1293
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
Comments
This temporarily skirts around the issue described in the following issue: mongodb#1293
Hello guys, |
I upgraded to v3.2.3 earlier today, and this issue is still present. The workaround I mentioned still works, so I'm going to submit a pull request to get it incorporated. :) |
This temporarily skirts around the issue described in the following issue: mongodb#1293
This temporarily skirts around the issue described in the following issue: mongodb#1293 (cherry picked from commit ebf5a38)
Fix mongodb#1293: Exception: BelongsToMany Is Not supported for hybrid query constraints! mongodb#1324
I am facing the same error in 2019. Any solution? My models ##User
##EmailAccount
Error
|
This temporarily skirts around the issue described in the following issue: mongodb/laravel-mongodb#1293
This temporarily skirts around the issue described in the following issue: mongodb/laravel-mongodb#1293
This temporarily skirts around the issue described in the following issue: mongodb/laravel-mongodb#1293
This temporarily skirts around the issue described in the following issue: mongodb/laravel-mongodb#1293
This temporarily skirts around the issue described in the following issue: mongodb#1293
Fix mongodb#1293: Exception: BelongsToMany Is Not supported for hybrid query constraints! mongodb#1324
This temporarily skirts around the issue described in the following issue: mongodb/laravel-mongodb#1293
This temporarily skirts around the issue described in the following issue: mongodb/laravel-mongodb#1293
Uh oh!
There was an error while loading. Please reload this page.
My application is throwing the following exception on my many-to-many (BelongsToMany) relationships, even though I'm not using hybrid relations.
This appears to have cropped up ever since #1195 was merged. I have been running using 'dev-master' for testing. Rolling back to the latest stable release (v3.2.2) fixes the issue (although the issue fixed by #1158 still hasn't been tagged into the stable release).
Here's the exception and stack trace:
This is the code block which is causing the exception:
Having done a bit more digging, it appears to be passing the
($this->getModel() instanceof Model)
conditional, found on line 30 of Helpers\QueriesRelations.php and therefore treating it as a hybrid relationship. I have been able to temporarily skirt round the issue by adding this toHelpers\QueriesRelations@getRelatedConstraintKey
.The text was updated successfully, but these errors were encountered: