/** * Gets MongoDb Collection * * @return ADOConnection Returns the instance of the ADOConnection */ protected function getDb() { if ($this->db === null) { $this->db = NewADOConnection($this->options['dsn']); $this->db->SetFetchMode(ADODB_FETCH_ASSOC); } return $this->db; }