DDC-2951: [GH-931] Allow overriding getShortName() for discriminator map #3674

Closed
opened 2026-01-22 14:25:08 +01:00 by admin · 2 comments
Owner

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 getShortName to include the namespace (or indeed just return the class name with no modifications), which would allow them both to work.

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 `getShortName` to include the namespace (or indeed just return the class name with no modifications), which would allow them both to work.
admin added the Bug label 2026-01-22 14:25:08 +01:00
admin closed this issue 2026-01-22 14:25:08 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 8, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-931] was closed:
https://github.com/doctrine/doctrine2/pull/931

@doctrinebot commented on GitHub (Feb 8, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-931] was closed: https://github.com/doctrine/doctrine2/pull/931
Author
Owner

@doctrinebot commented on GitHub (Feb 8, 2014):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Feb 8, 2014): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3674