Commit 195e5aff authored by Hannes Magnusson's avatar Hannes Magnusson

PHP-1307 & PHP-1308: Collection::delete[One|Many]()

parent 606e54e2
......@@ -203,5 +203,11 @@ class Collection {
function insertOne(array $filter) { /* {{{ */
return $this->_writeSingle($filter, self::INSERT);
} /* }}} */
function deleteOne(array $filter) { /* {{{ */
return $this->_writeSingle($filter, self::DELETE);
} /* }}} */
function deleteMany(array $filter) { /* {{{ */
return $this->_writeSingle($filter, self::DELETE, array("limit" => 0));
} /* }}} */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment