Skip to content

fix(doctrine): left join collection associations in IriFilter inside OR groups - #8777

Open
BenMacha wants to merge 1 commit into
api-platform:5.0from
BenMacha:fix-iri-filter-collection-join-5-0
Open

BenMacha wants to merge 1 commit into
api-platform:5.0from
BenMacha:fix-iri-filter-collection-join-5-0

Conversation

@BenMacha

@BenMacha BenMacha commented Nov 1, 2026

Copy link
Copy Markdown
Q A
Branch? 5.0
Tickets
License MIT
Doc PR

IriFilter always INNER joined a collection-valued association, also inside an OR group (OrFilter, FreeTextQueryFilter), so items matching another member of the group but with an empty collection were dropped. It now uses joinTypeFor() like the other filters fixed by #8674: LEFT join in orWhere groups, INNER join otherwise.

Test: NestedPropertyJoinTypeTest::testIriFilterCollectionJoinTypeDependsOnWhereClause.

…OR groups

When an IriFilter on a collection association (e.g. `tags`) is grouped with
other conditions in an OrFilter, it always added an INNER JOIN, so rows
matching only the other branches but having an empty collection were dropped.
It now uses the same join type helper as the nested property joins (api-platform#8674).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T08:07:00.682470Z 0a483bd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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