Méthode |
Description |
|
__construct ( Mongolid\Schema\HasSchemaInterface $entity ) |
BulkWrite constructor. |
|
execute ( integer $writeConcern = 1 ) : MongoDB\Driver\WriteResult |
Execute the BulkWrite, using a connection from the Pool. |
|
getBulkWrite ( ) : MongoDB\Driver\BulkWrite |
Get the BulkWrite object to perform other operations
not covered by this class. |
|
setBulkWrite ( MongoDB\Driver\BulkWrite $bulkWrite ) |
Set BulkWrite object that will receive all operations
and later be executed. |
|
updateOne ( MongoDB\BSON\ObjectID | string $id, array $dataToSet, array $options = ['upsert' => true] ) |
Add an update operation to the Bulk, where only one record is updated, by _id. |
|