Commit b646280f authored by Hannes Magnusson's avatar Hannes Magnusson

PHP-1310 & PHP-1311: Collection::update[One|Many]()

parent 195e5aff
...@@ -209,5 +209,11 @@ class Collection { ...@@ -209,5 +209,11 @@ class Collection {
function deleteMany(array $filter) { /* {{{ */ function deleteMany(array $filter) { /* {{{ */
return $this->_writeSingle($filter, self::DELETE, array("limit" => 0)); return $this->_writeSingle($filter, self::DELETE, array("limit" => 0));
} /* }}} */ } /* }}} */
function updateOne(array $filter, $update, array $options = array()) { /* {{{ */
return $this->_writeSingle($filter, self::UPDATE, $options, $update);
} /* }}} */
function updateMany(array $filter, $update, array $options = array()) { /* {{{ */
return $this->_writeSingle($filter, self::UPDATE, $options + array("limit" => 0), $update);
} /* }}} */
} }
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