/** * {@inheritdoc} */ public function rewind() { if ($this->iterator) { throw new InvalidMethodCallException('Cannot rewind a Doctrine\\ODM\\Query'); } $this->iterator = $this->query->iterate(); $this->iterator->rewind(); }
/** * @return \Doctrine\MongoDB\Iterator */ public function getIterator() { return $this->query->getIterator(); }