diff --git a/Client.php b/Client.php index a753a1c..6e323d4 100644 --- a/Client.php +++ b/Client.php @@ -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( @@ -415,4 +415,4 @@ public function getStats() return array($count, $time); } -} \ No newline at end of file +}