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 Bug
    • Status: Closed
    • Priority: Major 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
        Roman S. Borschel added a comment -

        I assume this is Class Table Inheritance?

        If so, I think I know what to do.

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

        Yes, this is Class Table Inheritance.

        Show
        Avi Block added a comment - Yes, this is Class Table Inheritance.
        Hide
        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
        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:
            Roman S. Borschel
            Reporter:
            Avi Block
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: