Skip to content

Commit 832f321

Browse files
committed
Use remove for truncate, fixes mongodb#85
1 parent 54de2cb commit 832f321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Jenssegers/Mongodb/Query/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ public function from($collection)
486486
*/
487487
public function truncate()
488488
{
489-
$result = $this->collection->drop();
489+
$result = $this->collection->remove();
490490

491491
return (1 == (int) $result['ok']);
492492
}

0 commit comments

Comments
 (0)