Example #1
0
 /**
  * Check if this position is a valid one in the cursor
  * @return bool
  */
 public function valid()
 {
     return $this->cursor->valid();
 }
Example #2
0
 public function each()
 {
     return Yii::createObject(['class' => MongoCursor::className(), 'query' => $this]);
 }