Skip to content

Improve error handling on unsupported hybrid queries #3404

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

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

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

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 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
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.

1 participant