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

Open
opened 2026-01-22 14:25:06 +01:00 by admin · 0 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:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3672