/**
* Get configured database adapter
*
* @return Zend_Db_Adapter_Abstract
*/
public function getDbAdapter()
{
if (null === $this->_dbAdapter) {
if ($this->_dbTable instanceof Zend_Db_Table_Abstract) {
$this->_dbAdapter = $this->_dbTable->getAdapter();
} else {
throw new Engine_ServiceLocator_Exception('Database adapter not configured');
}
}
return $this->_dbAdapter;
}