Commit 606e54e2 authored by Hannes Magnusson's avatar Hannes Magnusson

PHP-1305: Collection::insertOne()

parent b90aaf80
...@@ -195,7 +195,13 @@ class Collection { ...@@ -195,7 +195,13 @@ class Collection {
function getWriteOptions() { /* {{{ */ function getWriteOptions() { /* {{{ */
return array( return array(
"ordered" => false, "ordered" => false,
"upsert" => false,
"limit" => 1,
); );
} /* }}} */ } /* }}} */
function insertOne(array $filter) { /* {{{ */
return $this->_writeSingle($filter, self::INSERT);
} /* }}} */
} }
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