mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
generate indexedBy key with a method #5197
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 @michsk on GitHub (Jul 22, 2016).
I would love to see a way to have the indexedBy value be generated by a method. When using auto id we don't always have a value yet to use when not loading the entity from the EM (using new). So than it would make sense to be able to generate a unique hash based of other values.