mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2951: [GH-931] Allow overriding getShortName() for discriminator map #3672
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 (Feb 5, 2014).
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 joshbuckley182:
Url: https://github.com/doctrine/doctrine2/pull/931
Message:
This will allow the keys for entries in a generated discriminator map to be customised. E.g. to include namespace
For example, if I had more than one entity with the same name, but used for different purposes, I could customise
getShortNameto include the namespace (or indeed just return the class name with no modifications), which would allow them both to work.