/** * Se conecta a la base de datos y descarga los meta-datos si es necesario * * @param boolean $new_connection */ protected function _connect($new_connection = false) { if (!is_object($this->db) || $new_connection) { if ($this->database) { $this->db = DbBase::raw_connect($new_connection, $this->database); } else { $this->db = DbBase::raw_connect($new_connection); } } $this->db->debug = $this->debug; $this->db->logger = $this->logger; $this->dump(); }