Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-239

Never said that you must not use DiscriminatorColumn in your class like field (about inheritance)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Documentation
    • Security Level: All
    • Labels:
      None

      Description

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

        Activity

        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - Added additional validations for duplicate field/association names and column names, in combination with the discriminator column name also.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Valery Dubrava
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: