mongodb\Query distinct()

distinct() public method

Returns a list of distinct values for the given column across a collection.

public array distinct ( $q, $db = null )
$q string

Column to use.

$db yii\mongodb\Connection

The Mongo connection used to execute the query. If this parameter is not given, the mongodb application component will be used.

return array

Array of distinct values

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

Please login to continue.