_db = $db; } elseif ( ! $this->_db) { // Use the default name $this->_db = Database::$default; } if (is_string($this->_db)) { // Load the database $this->_db = Database::instance($this->_db); } } } // End Model