Skip to content

Fix #1293: Exception: BelongsToMany Is Not supported for hybrid query constraints! #1324 #1487

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

Merged
merged 2 commits into from
Apr 10, 2018

Conversation

benargo
Copy link
Contributor

@benargo benargo commented Apr 10, 2018

This fixes issue #1293 where non-hybrid BelongsToMany relations were throwing the described exception.

I previously submitted this change as PR #1324 but closed it as I developed the original fix on a previous build. I've made sure this change is compatible with the latest version, and am resubmitting this.

(Sorry that I can't reopen the original PR, but I had to recreate the branch on my account)

benargo added 2 commits April 7, 2018 10:40
This temporarily skirts around the issue described in the following issue: mongodb#1293
Without this statement, the reaffirming of belongsToMany relations would fail. The original commit was to prove a point in an issue, but for it to work in the real world this extra bit is added.
@jenssegers jenssegers merged commit 9df75b7 into mongodb:master Apr 10, 2018
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
 Fix mongodb#1293: Exception: BelongsToMany Is Not supported for hybrid query constraints! mongodb#1324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants