File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ Definition
9
9
10
10
.. phpclass:: MongoDB\ClientBulkWrite
11
11
12
- This class enables you to assemble a bulk write command to pass to
13
- :phpmethod:`MongoDB\Client::bulkWrite()` to perform write operations
14
- across multiple namespaces.
12
+ This class enables you to assemble a bulk write command that you
13
+ pass to :phpmethod:`MongoDB\Client::bulkWrite()` to perform write
14
+ operations across multiple namespaces.
15
15
16
- This class is a builder to instantiate a :php:`BulkWriteCommand
16
+ ``ClientBulkWrite`` is a builder class to create a :php:`BulkWriteCommand
17
17
<mongodb-driver-bulkwritecommand>` instance that the library sends to the
18
18
server.
19
19
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ Parameters
37
37
38
38
We recommend using the ``ClientBulkWrite`` builder class and
39
39
methods to specify write operations in a bulk write command instead
40
- of using the ``BulkWriteCommand`` class.
40
+ of using the ``BulkWriteCommand`` class. ``ClientBulkWrite``
41
+ provides a fluent API with methods similar to CRUD methods from the
42
+ :phpclass:`MongoDB\Collection` class.
41
43
42
44
Represents the assembled bulk write command or builder.
43
45
:phpmethod:`MongoDB\Client::bulkWrite()` supports
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ Definition
26
26
Collection $collection,
27
27
): self
28
28
29
-
30
29
You cannot mix ``Collection`` instances associated with different
31
- ``Manager`` objects because the library sends the client bulk
32
- write operation as a command to a single server.
30
+ ``Manager`` objects when calling this method on a ``ClientBulkWrite``
31
+ instance. This is because the library sends the completed
32
+ ``BulkWriteCommand`` to a single server.
33
33
34
34
Parameters
35
35
----------
You can’t perform that action at this time.
0 commit comments