Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-132

Subclass' columns missing from cached ClassMetadata::$resultColumnNames

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.0-ALPHA4
    • Component/s: Mapping Drivers, ORM
    • Security Level: All
    • Labels:
      None

      Description

      I have a Customer with class table inheritance mapping and some fields, and a subclass called SuperCustomer with two fields: bool `isSuper` and string `extra`.

      I found that when replacing the usual ArrayCache with a MemcacheCache, everything works fine on the first request, but notices occur on subsequent requests:

      Notice: Undefined index: isSuper in X:\...\Doctrine\ORM\Persisters\StandardEntityPersister.php on line 577
      Notice: Undefined index: extra in X:\...\Doctrine\ORM\Persisters\StandardEntityPersister.php on line 577

      Inspection of ClassMetadata::$resultColumnNames on line 569 showed that the two fields `isSuper` and `extra` were (the only things) missing. The resulting object's `isSuper` and `extra` properties were empty.

      I have yet to find the cause of this, but maybe you have an idea.

      1. patch.diff
        14 kB
        Jonathan H. Wage

        Activity

        Reinier Kip created issue -
        Roman S. Borschel made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Critical [ 2 ]
        Jonathan H. Wage made changes -
        Attachment patch.diff [ 10155 ]
        Roman S. Borschel made changes -
        Affects Version/s 2.0-ALPHA4 [ 10036 ]
        Affects Version/s 2.0-ALPHA3 [ 10029 ]
        Roman S. Borschel made changes -
        Affects Version/s 2.0-ALPHA3 [ 10029 ]
        Affects Version/s 2.0-ALPHA4 [ 10036 ]
        Fix Version/s 2.0-ALPHA4 [ 10036 ]
        Roman S. Borschel made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Roman S. Borschel made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 10372 ] jira-feedback [ 15472 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15472 ] jira-feedback2 [ 17336 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17336 ] jira-feedback3 [ 19593 ]

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Reinier Kip
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: