diff --git a/EMongoCursor.php b/EMongoCursor.php index 462f876..e6b11ec 100644 --- a/EMongoCursor.php +++ b/EMongoCursor.php @@ -92,7 +92,7 @@ public function cursor(){ * Get next doc in cursor */ public function getNext(){ - if($c=$this->cursor->getNext()) + if($c=$this->cursor()->getNext()) return $this->current=$this->model->populateRecord($c,true,$this->partial); }