Skip to content

Commit 3b83196

Browse files
committed
PHPLIB-87: Remove manual bsonSerialize() call
1 parent 8665a88 commit 3b83196

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Collection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,8 +1312,7 @@ private function createIndexesLegacy(Server $server, array $indexes)
13121312
$bulk = new BulkWrite(true);
13131313

13141314
foreach ($indexes as $index) {
1315-
// TODO: Remove this once PHPC-274 is resolved (see: PHPLIB-87)
1316-
$bulk->insert($index->bsonSerialize());
1315+
$bulk->insert($index);
13171316
}
13181317

13191318
$server->executeBulkWrite($this->dbname . '.system.indexes', $bulk);

0 commit comments

Comments
 (0)