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

Closed
doctrinebot opened this Issue Jan 5, 2010 · 2 comments

2 participants

@doctrinebot

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

@doctrinebot

Comment created by @beberlei:

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

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment