[PR #1222] Embeddables in metadata builder #9278

Closed
opened 2026-01-22 16:03:48 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/1222

State: closed
Merged: Yes


Embeddables set the $classMetadata->isEmbeddedClass = true and sets $classMetadata->isMappedSuperclass = false, imitating the switch in xml / yml drivers.

Embeddeds have 2 methods, as other types have: addEmbedded is a one-off adder with fluent behavior, and createEmbedded returns an instance of EmbeddedBuilder. The class is very thin right now, but it's a good way to lay ground for improvements on embedded creation in the future.

This one is probably more useful than the last one, @Ocramius ;-)

**Original Pull Request:** https://github.com/doctrine/orm/pull/1222 **State:** closed **Merged:** Yes --- Embeddables set the `$classMetadata->isEmbeddedClass = true` and sets `$classMetadata->isMappedSuperclass = false`, imitating the `switch` in xml / yml drivers. Embeddeds have 2 methods, as other types have: `addEmbedded` is a one-off adder with fluent behavior, and `createEmbedded` returns an instance of `EmbeddedBuilder`. The class is very thin right now, but it's a good way to lay ground for improvements on embedded creation in the future. This one is probably more useful than the last one, @Ocramius ;-)
admin added the pull-request label 2026-01-22 16:03:48 +01:00
admin closed this issue 2026-01-22 16:03:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9278