mongodb\Collection batchInsert()

batchInsert() public method

Inserts several new rows into collection.

public array batchInsert ( $rows, $options = [] )
$rows array

Array of arrays or objects to be inserted.

$options array

List of options in format: optionName => optionValue.

return array

Inserted data, each row will have "_id" key assigned to it.

throws yii\mongodb\Exception

on failure.

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

Please login to continue.