[PR #1135] [DDC-3304] Add support for embeddables in entity generator #9192

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

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

State: closed
Merged: Yes


Currently the entity generator does not respect embeddables and therefore generates wrong entity classes.
This PR adds support for generating embeddables and embedded properties in entities.
It also introduces a new option to decide whether embeddable classes should be mutable or immutable. Mutable embeddables (default) are generated like entities (getters and setters but no constructor). Immutable embeddables however do not provide setters but instead have a constructor that takes all defined properties as arguments.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1135 **State:** closed **Merged:** Yes --- Currently the entity generator does not respect embeddables and therefore generates wrong entity classes. This PR adds support for generating embeddables and embedded properties in entities. It also introduces a new option to decide whether embeddable classes should be mutable or immutable. Mutable embeddables (default) are generated like entities (getters and setters but no constructor). Immutable embeddables however do not provide setters but instead have a constructor that takes all defined properties as arguments.
admin added the pull-request label 2026-01-22 16:03:32 +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#9192