Commit f41ed652 authored by Hannes Magnusson's avatar Hannes Magnusson

Fix replacing a document after fixing PHP-1320

parent 664b5454
......@@ -216,7 +216,7 @@ class Collection {
if (key($update)[0] == '$') {
throw new \RuntimeException("First key in \$update must NOT be a \$operator");
}
return $this->_writeSingle($filter, self::UPDATE, $options, array('$set' => $update));
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