Skip to content

Conversation

paulinevos
Copy link
Collaborator

Hybrid belongs-to-many relationships are not supported for query constraints. However, the support check was done downstream of a bunch of Eloquent stuff, resulting in the user getting an exception that didn't tell them anything about the usage being unsupported.

This moves that check further up the chain so that the user is alerted to the lack of support before we do anything else.

Checklist

  • Add tests and ensure they pass

@paulinevos paulinevos requested a review from a team as a code owner June 12, 2025 08:49
@paulinevos paulinevos requested a review from GromNaN June 12, 2025 08:49
@paulinevos paulinevos enabled auto-merge (squash) June 12, 2025 09:04
Hybrid belongs-to-many relationships are not supported for query
constraints. However, the support check was done downstream of a bunch
of Eloquent stuff, resulting in the user getting an exception that
didn't tell them anything about the usage being unsupported.

This moves that check further up the chain so that the user is alerted
to the lack of support before we do anything else.
@paulinevos paulinevos requested a review from GromNaN June 19, 2025 12:27
@paulinevos paulinevos merged commit b02b40c into mongodb:5.x Jun 19, 2025
71 checks passed
@GromNaN GromNaN added this to the 5.5 milestone Aug 28, 2025
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