Skip to content


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

doctrinebot opened this Issue · 2 comments

2 participants


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..


Comment created by @beberlei:

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


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.