Skip to content

fix(doctrine): support inverse-side associations in IriFilter - #8900

Open
usu wants to merge 1 commit into
api-platform:5.0from
usu:fix/iri-filter-inverse-side
Open

usu wants to merge 1 commit into
api-platform:5.0from
usu:fix/iri-filter-inverse-side

Conversation

@usu

@usu usu commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

IriFilter compared the inverse side of a OneToOne directly, which DQL rejects. Join the association instead, as for collection-valued ones, and bind a single value on an inverse side with the target identifier type.

Q A
Branch? 5.0
Tickets -
License MIT
Doc PR -

The ORM IriFilter returns a 500 when filtering on the inverse side of a one-to-one association ("A single-valued association path expression to an inverse side is not supported in DQL queries"). It now joins these associations, as it already does for collection-valued ones.

Test: tests/Functional/Parameters/IriFilterInverseOneToOneTest.php

IriFilter compared the inverse side of a OneToOne directly, which DQL
rejects. Join the association instead, as for collection-valued ones, and
bind a single value on an inverse side with the target identifier type.
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