fetchRows() protected method
Fetches rows from the given Mongo cursor.
protected array|boolean fetchRows ( $cursor, $all = true, $indexBy = null )$cursor \MongoDB\Driver\Cursor
Mongo cursor instance to fetch data from. $all boolean
Whether to fetch all rows or only first one. $indexBy
string|callable
The column name or PHP callback, by which the query results should be indexed by. return
array|boolean
Result. throws yii\mongodb\Exception
on failure.