Skip to content
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

Update EntityFilter for ManyToMany relations #4917

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from

Conversation

bt-nn
Copy link

@bt-nn bt-nn commented Dec 20, 2021

Fixes #4740

If you have a ManyToMany and use "is not equal to", the result will be incorrect if the entity has more than one entry on the many side (more precisely described in the isssue).
This fixes the problem by using a subquery instead of a simple join when necessary.

@bt-nn bt-nn changed the title Update EntityFilter.php Update EntityFilter for ManyToMany relations Dec 20, 2021
corrects errors if the filter occurs more than once
@javiereguiluz javiereguiluz added this to the 3.x milestone Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "contains / doesn't contain" to EntityFilter for ManyToMany associations
2 participants