Skip to content

Commit 5d1686f

Browse files
committed
Note that UpdateResult::getModifiedCount() is undefined for legacy ops
1 parent 2a7cbb6 commit 5d1686f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UpdateResult.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public function getMatchedCount()
3838
/**
3939
* Return the number of documents that were modified.
4040
*
41-
* This value is undefined if the write was not acknowledged.
41+
* This value is undefined if the write was not acknowledged or if the write
42+
* executed as a legacy operation instead of write command.
4243
*
4344
* @see UpdateResult::isAcknowledged()
4445
* @return integer

0 commit comments

Comments
 (0)