mongodb\ActiveQuery all()

all() public method

Executes query and returns all results as an array.

public array|yii\mongodb\ActiveRecord all ( $db = null )
$db yii\mongodb\Connection

The Mongo connection used to execute the query. If null, the Mongo connection returned by $modelClass will be used.

return array|yii\mongodb\ActiveRecord

The query results. If the query results in nothing, an empty array will be returned.

doc_Yii
2016-10-30 17:07:21
Comments
Leave a Comment

Please login to continue.