Commit dd1a781e authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #14 from jmikola/phplib-87

PHPLIB-87: Remove manual bsonSerialize() call
parents 8665a889 3b83196e
...@@ -1312,8 +1312,7 @@ class Collection ...@@ -1312,8 +1312,7 @@ class Collection
$bulk = new BulkWrite(true); $bulk = new BulkWrite(true);
foreach ($indexes as $index) { foreach ($indexes as $index) {
// TODO: Remove this once PHPC-274 is resolved (see: PHPLIB-87) $bulk->insert($index);
$bulk->insert($index->bsonSerialize());
} }
$server->executeBulkWrite($this->dbname . '.system.indexes', $bulk); $server->executeBulkWrite($this->dbname . '.system.indexes', $bulk);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment