Skip to content

Commit

Permalink
Merge pull request #31 from Kuzdo/master
Browse files Browse the repository at this point in the history
Fix Collection class.
  • Loading branch information
Sammaye authored Jan 15, 2018
2 parents 5330271 + b345463 commit 9cabc27
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 9cabc27

Please sign in to comment.