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. |
Please login to continue.