mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3853: [GH-1480] Allow custom id generators to handle composite keys #4721
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?
Originally created by @doctrinebot on GitHub (Jul 28, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of kaiwa:
Url: https://github.com/doctrine/doctrine2/pull/1480
Message:
Currently when using composite keys, any other id generation strategy than
NONE (assigned identifiers) is triggering an exception in ClassMetadataInfo.
This commit allows to use the CUSTOM strategy with composite keys, therefore
to allow a custom id generator to handle the composite key identifier
generation.
@JordyMoos commented on GitHub (Feb 6, 2017):
I need this feature
Its weird that composite key cant have a custom generator
@Ocramius commented on GitHub (Feb 6, 2017):
Try giving it a shot on
develop. We won't be implementing this for 2.x@JordyMoos commented on GitHub (Feb 6, 2017):
Oke thanks for responding @Ocramius
@Majkl578 commented on GitHub (Jul 28, 2017):
FYI: With recent changes in
develop, it should eventually be possible to have generated values for composite identifiers, mixing multiple generators (i.e. sequence + assigned), or even generators for non-identifier fields (i.e. sequence for non-id field). Seeca01b79658+f482d64d50for details.