mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #931] [CLOSED] Allow overriding getShortName() for discriminator map #8912
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/931
Author: @joshbuckley182
Created: 2/5/2014
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
ca0337eAllow overriding getShortName() for discriminator map📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(+1 -1)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.