DDC-239: Never said that you must not use DiscriminatorColumn in your class like field (about inheritance) #294

Closed
opened 2026-01-22 12:33:43 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 5, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user cloun:

I made mapping field in base class to DiscriminatorColumn and because of this EntityRepository->find($id) returned object with parent type (although this row corresponded to child type).
I performed deep debugging and found out the reason in the StandardEntityPersister->_processSqlResultInheritanceAware method.
May be if explicity write about this it will save the time of future users..

Originally created by @doctrinebot on GitHub (Jan 5, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user cloun: I made mapping field in base class to DiscriminatorColumn and because of this EntityRepository->find($id) returned object with parent type (although this row corresponded to child type). I performed deep debugging and found out the reason in the StandardEntityPersister->_processSqlResultInheritanceAware method. May be if explicity write about this it will save the time of future users..
admin added the Bug label 2026-01-22 12:33:43 +01:00
admin closed this issue 2026-01-22 12:33:45 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 20, 2010):

Comment created by @beberlei:

Added additional validations for duplicate field/association names and column names, in combination with the discriminator column name also.

@doctrinebot commented on GitHub (Mar 20, 2010): Comment created by @beberlei: Added additional validations for duplicate field/association names and column names, in combination with the discriminator column name also.
Author
Owner

@doctrinebot commented on GitHub (Mar 20, 2010):

Issue was closed with resolution "Fixed"

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

No dependencies set.

Reference: doctrine/archived-orm#294