Skip to content

Commit 64d338a

Browse files
committed
deleteMany is supposed to have no limit
1 parent 0102fc8 commit 64d338a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function bulkWrite(array $bulk, array $options = array()) { /* {{{ */
248248
break;
249249

250250
case "deleteMany":
251-
$options = array_merge($this->getWriteOptions(), isset($args[1]) ? $args[1] : array(), array("limit" => 1));
251+
$options = array_merge($this->getWriteOptions(), isset($args[1]) ? $args[1] : array(), array("limit" => 0));
252252
$batch->delete($args[0], $options);
253253
break;
254254

0 commit comments

Comments
 (0)