mongodb\Collection findAndModify()

findAndModify() public method

Updates a document and returns it.

public array|null findAndModify ( $condition, $update, $options = [] )
$condition array

Query condition

$update array

Update criteria

$options array

List of options in format: optionName => optionValue.

return array|null

The original document, or the modified document when $options['new'] is set.

throws yii\mongodb\Exception

on failure.

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

Please login to continue.