Doctrine 1
  1. Doctrine 1
  2. DC-829

Hydrator/RecordDriver/setLastElement And APC useResultCache

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
      None

      Description

      1) I have a Query with APC useResultCache with leftJoin between User and Avatar. (With no avatar for this User).
      2) I have au Query without APC useResultCache with leftJoin between Gallery, User and Avatar (Same user than 1))

      On the first show of my page => OK
      On second show of my page (With APC Cache) error when i call user->getGalleries() :

      In Hydrator/RecordDriver.php setLastElement()

      $coll is instanceOf Doctrine_Null and count($coll) return 1, so => Crash because ->getLast doesn't exist in Doctrine_Null class

      If you add in setLastElement() (Before if (count($coll) > 0) ....

      if ($coll instanceOf Doctrine_Null)

      { return; }

      It's works.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: