Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
Fixed driverOptions
  • Loading branch information
dsphper committed May 27, 2016
1 parent 779458e commit f6a4981
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 f6a4981

Please sign in to comment.