public remove ( array | string $collection, array $condition = [], array $options = [] ) : integer | boolean | ||
$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. |
public function remove($collection, $condition = [], $options = [])
{
$this->beginProfile($token = " > remove " . $this->composeCollectionLogName($collection) . ") ...");
$result = $this->db->getCollection($collection)->remove($condition, $options);
$this->endProfile($token);
return $result;
}