mongodb\Collection remove()

remove() public method

Removes data from the collection.

public integer|boolean remove ( $condition = [], $options = [] )
$condition array

Description of records to remove.

$options array

List of options in format: optionName => optionValue.

return integer|boolean

Number of updated documents or whether operation was successful.

throws yii\mongodb\Exception

on failure.

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

Please login to continue.