|
| __construct (WriteResult $writeResult) |
|
| getDeletedCount () |
| Return the number of documents that were deleted.
|
|
| isAcknowledged () |
| Return whether this delete was acknowledged by the server.
|
|
◆ getDeletedCount()
MongoDB\DeleteResult::getDeletedCount |
( |
| ) |
|
Return the number of documents that were deleted.
This method should only be called if the write was acknowledged.
- See also
- DeleteResult\isAcknowledged()
- Return values
-
- Exceptions
-
BadMethodCallException | is the write result is unacknowledged |
◆ isAcknowledged()
MongoDB\DeleteResult::isAcknowledged |
( |
| ) |
|
Return whether this delete was acknowledged by the server.
If the delete was not acknowledged, other fields from the WriteResult (e.g. deletedCount) will be undefined.
- Return values
-
The documentation for this class was generated from the following file:
- cache/stores/mongodb/MongoDB/DeleteResult.php