Skip to content

Commit

Permalink
Fix Collection class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuzdo committed Jan 15, 2018
1 parent 5330271 commit b345463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function insertMany(array $documents, array $options = [])
);
}

$res = $this->collection->insertOne($documents, $options);
$res = $this->collection->insertMany($documents, $options);

if($this->client->enableProfiling){
Yii::endProfile(
Expand Down Expand Up @@ -174,7 +174,7 @@ public function updateMany($filter, $update, array $options = [])
Yii::beginProfile($token, 'mongoyii\Collection.updateMany');
}

$res = $this->collection->updateOne($filter, $update, $options);
$res = $this->collection->updateMany($filter, $update, $options);

if($this->client->enableProfiling){
Yii::endProfile($token, 'mongoyii\Collection.updateMany');
Expand Down

0 comments on commit b345463

Please sign in to comment.