DDC-4006: ID generator strategy not inherited from embeddable #4887

Closed
opened 2026-01-22 14:51:31 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 19, 2015).

Originally assigned to: @deeky666 on GitHub.

Jira issue originally created by user @deeky666:

Setting the ID generator strategy mapping when using embeddables as identifiers in entities has no effect and always results in the "NONE" strategy.

See comment for an example: http://www.doctrine-project.org/jira/browse/DDC-2987?focusedCommentId=25786&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-25786

This is due to the ID generator strategy not being inherited to its parent entity when declared in an embeddable (ClassMetadataFactory).

Originally created by @doctrinebot on GitHub (Nov 19, 2015). Originally assigned to: @deeky666 on GitHub. Jira issue originally created by user @deeky666: Setting the ID generator strategy mapping when using embeddables as identifiers in entities has no effect and always results in the "NONE" strategy. See comment for an example: http://www.doctrine-project.org/jira/browse/[DDC-2987](http://www.doctrine-project.org/jira/browse/DDC-2987)?focusedCommentId=25786&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-25786 This is due to the ID generator strategy not being inherited to its parent entity when declared in an embeddable (ClassMetadataFactory).
admin added the Bug label 2026-01-22 14:51:31 +01:00
admin closed this issue 2026-01-22 14:51:31 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 19, 2015):

@doctrinebot commented on GitHub (Nov 19, 2015): - depends on [DDC-4007: [GH-1561] [DDC-4006] Inherit ID generator strategy mapping from embeddables](http://www.doctrine-project.org/jira/browse/DDC-4007)
Author
Owner

@doctrinebot commented on GitHub (Nov 23, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 23, 2015): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4887