code: protected function _setupDatabaseAdapter()
      {
          if (Zend_Registry::isRegistered('multidb')) {
              return $this->_setAdapter(Zend_Registry::get('multidb')->getDb($this->_connection));
          }
  
          return parent::_setupDatabaseAdapter();
      }
docs: Initialize database adapter.
  
  @throws Zend_Db_Table_Exception