save() public method
Update the existing database data, otherwise insert this data
public \MongoId save ( $data, $options = [] ) | ||
---|---|---|
$data | array|object |
Data to be updated/inserted. |
$options | array |
List of options in format: optionName => optionValue. |
return | \MongoId |
Updated/new record id instance. |
throws | yii\mongodb\Exception |
on failure. |
Please login to continue.