Parcourir la source

cursor reset should reset cursorNeedsAdvencing field state

Rob Williams il y a 8 ans
Parent
commit
5b0b20190b
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      lib/Alcaeus/MongoDbAdapter/AbstractCursor.php

+ 1 - 0
lib/Alcaeus/MongoDbAdapter/AbstractCursor.php

@@ -381,6 +381,7 @@ abstract class AbstractCursor
     protected function reset()
     {
         $this->startedIterating = false;
+        $this->cursorNeedsAdvancing = true;
         $this->cursor = null;
         $this->iterator = null;
         $this->storeIteratorState();