Skip to content

Commit 195e5af

Browse files
committed
PHP-1307 & PHP-1308: Collection::delete[One|Many]()
1 parent 606e54e commit 195e5af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Collection.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,11 @@ function getWriteOptions() { /* {{{ */
203203
function insertOne(array $filter) { /* {{{ */
204204
return $this->_writeSingle($filter, self::INSERT);
205205
} /* }}} */
206+
function deleteOne(array $filter) { /* {{{ */
207+
return $this->_writeSingle($filter, self::DELETE);
208+
} /* }}} */
209+
function deleteMany(array $filter) { /* {{{ */
210+
return $this->_writeSingle($filter, self::DELETE, array("limit" => 0));
211+
} /* }}} */
206212
}
207213

0 commit comments

Comments
 (0)