Since: 1.0
Author: Jonathan H. Wage (jonwage@gmail.com)
Inheritance: extends Doctrine\MongoDB\Query\Query
 /**
  * {@inheritdoc}
  */
 public function rewind()
 {
     if ($this->iterator) {
         throw new InvalidMethodCallException('Cannot rewind a Doctrine\\ODM\\Query');
     }
     $this->iterator = $this->query->iterate();
     $this->iterator->rewind();
 }
Exemplo n.º 2
0
 /**
  * @return \Doctrine\MongoDB\Iterator
  */
 public function getIterator()
 {
     return $this->query->getIterator();
 }