mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3736: Support for Objects as Identifiers with Strategy AUTO #4585
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 (May 14, 2015).
Jira issue originally created by user kezek:
According to the official documentation (http://doctrine-orm.readthedocs.org/en/latest/changelog/migration25.html#support-for-objects-as-identifiers) using objects as Identifiers work .
The issue is that if in the mapping settings generator strategy is set to AUTO, the BasicEntityPersister won't hydrate the id to an Object , but keep it as a scalar.
This could be tracked down to the IdGenerator :
@doctrinebot commented on GitHub (May 14, 2015):
Comment created by kezek:
Workaround:
Create a ObjectIdentityGenerator that extends AbstractIdGenerator and implement generate: