mongodb\Collection distinct()

distinct() public method

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

public array|boolean distinct ( $column, $condition = [], $options = [] )
$column string

Column to use.

$condition array

Query parameters.

$options array

List of options in format: optionName => optionValue.

return array|boolean

Array of distinct values, or "false" on failure.

throws yii\mongodb\Exception

on failure.

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

Please login to continue.