public function createCursor()
    {
        $cursor = $this->repository->getCollection()->find($this->criteria, $this->fields);

        if (null !== $this->sort) {
            $cursor->sort($this->sort);
        }

        if (null !== $this->limit) {
            $cursor->limit($this->limit);
        }

        if (null !== $this->skip) {
            $cursor->skip($this->skip);
        }

        if (null !== $this->batchSize) {
            $cursor->batchSize($this->batchSize);
        }

        if (null !== $this->hint) {
            $cursor->hint($this->hint);
        }

        if (null !== $this->slaveOkay) {
            $cursor->slaveOkay($this->slaveOkay);
        }

        if ($this->snapshot) {
            $cursor->snapshot();
        }

        if (null !== $this->timeout) {
            $cursor->timeout($this->timeout);
        }

        return $cursor;
    }
public function createCursor()
    {
        $cursor = $this->repository->getCollection()->find($this->criteria, $this->fields);

        if (null !== $this->sort) {
            $cursor->sort($this->sort);
        }

        if (null !== $this->limit) {
            $cursor->limit($this->limit);
        }

        if (null !== $this->skip) {
            $cursor->skip($this->skip);
        }

        if (null !== $this->batchSize) {
            $cursor->batchSize($this->batchSize);
        }

        if (null !== $this->hint) {
            $cursor->hint($this->hint);
        }

        if (null !== $this->slaveOkay) {
            $cursor->slaveOkay($this->slaveOkay);
        }

        if ($this->snapshot) {
            $cursor->snapshot();
        }

        if (null !== $this->timeout) {
            $cursor->timeout($this->timeout);
        }

        return $cursor;
    }
public function createCursor ( ) { $ cursor = $ this -> repository -> getCollection ( ) -> find ( $ this -> criteria , $ this -> fields ) ; if ( null !== $ this -> sort ) { $ cursor -> sort ( $ this -> sort ) ; } if ( null !== $ this -> limit ) { $ cursor -> limit ( $ this -> limit ) ; } if ( null !== $ this -> skip ) { $ cursor -> skip ( $ this -> skip ) ; } if ( null !== $ this -> batchSize ) { $ cursor -> batchSize ( $ this -> batchSize ) ; } if ( null !== $ this -> hint ) { $ cursor -> hint ( $ this -> hint ) ; } if ( null !== $ this -> slaveOkay ) { $ cursor -> slaveOkay ( $ this -> slaveOkay ) ; } if ( $ this -> snapshot ) { $ cursor -> snapshot ( ) ; } if ( null !== $ this -> timeout ) { $ cursor -> timeout ( $ this -> timeout ) ; } return $ cursor ; }
Create a cursor with the data of the query.

@return \MongoCursor A cursor with the data of the query.
Create a cursor with the data of the query .