mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-239: Never said that you must not use DiscriminatorColumn in your class like field (about inheritance) #294
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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..
@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):
Issue was closed with resolution "Fixed"