Skip to content

feat(doctrine): derive polymorphism from Doctrine - #8886

Open
soyuka wants to merge 1 commit into
polymorphism/3-jsonschemafrom
polymorphism/4-doctrine
Open

soyuka wants to merge 1 commit into
polymorphism/3-jsonschemafrom
polymorphism/4-doctrine

Conversation

@soyuka

@soyuka soyuka commented Nov 26, 2026 •

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

Exposes the Doctrine ORM and MongoDB ODM discriminator maps of a resource as serializer discriminator maps with doctrine.discriminator_map / doctrine_mongodb_odm.discriminator_map. The type property is the discriminator column name, an explicit serializer map takes precedence.

Test: tests/Functional/DoctrineDiscriminatedResourceTest.php

Part 4/6 of the polymorphism stack (#8889), replaces #8874.

Expose the Doctrine ORM and MongoDB ODM discriminator maps of a resource
as serializer discriminator maps with `doctrine.discriminator_map` and
`doctrine_mongodb_odm.discriminator_map`. An explicit serializer map
takes precedence.

Co-authored-by: Dylan van der Hout <dylan@rumble.nl>
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