Skip to content

docs: document SubtypeFilter - #2373

Closed
dylan-rumble wants to merge 1 commit into
api-platform:5.0from
dylan-rumble:docs-subtype-filter
Closed

dylan-rumble wants to merge 1 commit into
api-platform:5.0from
dylan-rumble:docs-subtype-filter

Conversation

@dylan-rumble

@dylan-rumble dylan-rumble commented Nov 25, 2026 •

Copy link
Copy Markdown

Documents the SubtypeFilter (Doctrine ORM) introduced in api-platform/core#8651.

  • Adds SubtypeFilter to the list of built-in filters.
  • New "Subtype Filter" section in core/doctrine-filters.md: usage with ExactFilter / ComparisonFilter, accepted subtypes (entity, mapped superclass, interface), strict mode and its behavior inside OrFilter, how it works (subquery + INSTANCE OF guard, since Doctrine has no TREAT), and the nested properties limitation.

CI

The failing Prettier check is unrelated to this PR: it flags core/graphql.md, which is not touched here. The workflow runs an unpinned npx prettier; the last green 5.0 run used Prettier 3.9.6, this one pulled 3.10.1, which reformats the two empty-selection GraphQL examples in core/graphql.md (cursor pagination). With 3.9.6 all files pass, including core/doctrine-filters.md.

Documents the ORM SubtypeFilter added in api-platform/core#8651.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dylan-rumble

Copy link
Copy Markdown
Author

closed in favor of #2374

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