Skip to content

Commit

Permalink
Merge pull request #5 from dsphper/master
Browse files Browse the repository at this point in the history
fix driverOptions
  • Loading branch information
Sammaye committed May 27, 2016
2 parents 779458e + f6a4981 commit 03eb6a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function init()
// We copy this function to add the subdocument validator as a built in validator
CValidator::$builtInValidators['subdocument'] = 'sammaye\mongoyii\validators\SubdocumentValidator';

$this->client = new Client($this->uri, $this->options);
$this->client = new Client($this->uri, $this->options, $this->driverOptions);

if(!is_array($this->db)){
throw new Exception(Yii::t(
Expand Down Expand Up @@ -415,4 +415,4 @@ public function getStats()

return array($count, $time);
}
}
}

0 comments on commit 03eb6a0

Please sign in to comment.