mongodb\Query fetchRows()

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.

doc_Yii
2016-10-30 17:08:57
Comments
Leave a Comment

Please login to continue.