Issue Type: Bug Created: 2011-09-29T21:11:47.000+0000 Last Updated: 2011-09-29T21:11:47.000+0000 Status: Open Fix version(s): Reporter: Bruno Thiago Leite Agutoli (btlagutoli) Assignee: Ralph Schindler (ralph) Tags: - Zend_Db_Table
Related issues: Attachments:
I'm using MultiDb to enable use several different banks in the same application, I made a model and specified the attribute (adapter $ this-> _db = 'db2';) and rushed this Fatal Error.
==================================
protected function _setupDatabaseAdapter()
{
if (! $this->_db) {
$this->_db = self::getDefaultAdapter();
if (!$this->_db instanceof Zend_Db_Adapter_Abstract) {
require_once 'Zend/Db/Table/Exception.php';
throw new Zend_Db_Table_Exception('No adapter found for ' . get_class($this));
}
//correction zend db class to consider the adpter which was set in the model
} else if(is_string($this->_db)) {
if (Zend_Registry::isRegistered($this->_db)) {
$this->_db = Zend_Registry::get($this->_db);
}
}
}
===================================
No comments to display