Ejemplo n.º 1
0
 /**
  * sets the database adapter
  *
  * @return void
  */
 protected function _setupDatabaseAdapter()
 {
     $this->_setAdapter(Zend_Registry::get('bootstrap')->getPluginResource('db')->getDbAdapter());
     parent::_setupDatabaseAdapter();
 }
Ejemplo n.º 2
0
 /**
  * Initialize database adapter.
  *
  * @throws Zend_Db_Table_Exception
  */
 protected function _setupDatabaseAdapter()
 {
     if (Zend_Registry::isRegistered('multidb')) {
         return $this->_setAdapter(Zend_Registry::get('multidb')->getDb($this->_connection));
     }
     return parent::_setupDatabaseAdapter();
 }