mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1222] Embeddables in metadata builder #9278
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/1222
State: closed
Merged: Yes
Embeddables set the
$classMetadata->isEmbeddedClass = trueand sets$classMetadata->isMappedSuperclass = false, imitating theswitchin xml / yml drivers.Embeddeds have 2 methods, as other types have:
addEmbeddedis a one-off adder with fluent behavior, andcreateEmbeddedreturns an instance ofEmbeddedBuilder. 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 ;-)