Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-58

Getting "undefined index" notices from fields in subentities which are foreign indices.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      I have a class with subclasses. One of the subclasses has fields which are foreign indices
      If i do

      $em->find('MyParentEntity', 1)

      I get notices
      Notice: Undefined index: somefieldwhichisforeignindex in /Doctrine/ORM/UnitOfWork.php on line 1708

        Activity

        Hide
        romanb Roman S. Borschel added a comment -

        I assume this is Class Table Inheritance?

        If so, I think I know what to do.

        Show
        romanb Roman S. Borschel added a comment - I assume this is Class Table Inheritance? If so, I think I know what to do.
        Hide
        ablock Avi Block added a comment -

        Yes, this is Class Table Inheritance.

        Show
        ablock Avi Block added a comment - Yes, this is Class Table Inheritance.
        Hide
        romanb Roman S. Borschel added a comment -

        I reproduced this issue in our unit tests and then fixed it. So this issue should be fixed now. If not, please report back with new information.

        Show
        romanb Roman S. Borschel added a comment - I reproduced this issue in our unit tests and then fixed it. So this issue should be fixed now. If not, please report back with new information.

          People

          • Assignee:
            romanb Roman S. Borschel
            Reporter:
            ablock Avi Block
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: