mongodb\Migration remove()

remove() public method

Removes data from the collection.

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

Collection name.

$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.

doc_Yii
2016-10-30 17:08:51
Comments
Leave a Comment

Please login to continue.