mongodb\Migration createIndex()

createIndex() public method

Creates an index on the collection and the specified fields.

public void createIndex ( $collection, $columns, $options = [] )
$collection string|array

Name of the collection

$columns array|string

Column name or list of column names.

$options array

List of options in format: optionName => optionValue.

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

Please login to continue.