DDC-3307: [GH-1135] [DDC-3304] Add support for embeddables in entity generator #4088

Open
opened 2026-01-22 14:34:58 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 12, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of deeky666:

Url: https://github.com/doctrine/doctrine2/pull/1135

Message:

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.

Originally created by @doctrinebot on GitHub (Sep 12, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of deeky666: Url: https://github.com/doctrine/doctrine2/pull/1135 Message: 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 Improvement label 2026-01-22 14:34:58 +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#4088