Skip to content

feat: support discriminator maps extended by child classes without the bundle - #370

Merged
joelwurtz merged 2 commits into
mainfrom
feat/discriminator-map-type
Dec 3, 2026
Merged

joelwurtz merged 2 commits into
mainfrom
feat/discriminator-map-type

Conversation

@joelwurtz

@joelwurtz joelwurtz commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Discriminator maps extended by child classes with #[DiscriminatorMapType] (Symfony 8.2) work with the bundle, as long as the child classes are registered as autoconfigured services. Without the bundle, AutoMapper::create() now accepts a serializer class metadata factory, so the child classes registry (or any other serializer mapping) can be given.

Depends on #359.

Base automatically changed from build/symfony-8.2 to main December 3, 2026 15:26
@joelwurtz
joelwurtz deleted the branch build/symfony-8.2 December 3, 2026 15:26
@joelwurtz joelwurtz closed this Dec 3, 2026
@joelwurtz joelwurtz reopened this Dec 3, 2026
@joelwurtz
joelwurtz force-pushed the feat/discriminator-map-type branch from ad9cfd6 to fcf6e24 Compare December 3, 2026 15:38
@joelwurtz
joelwurtz merged commit 69d7e4e into main Dec 3, 2026
6 checks passed
@joelwurtz
joelwurtz deleted the feat/discriminator-map-type branch December 3, 2026 15:38
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