Is it possible to get Zend_Db_Table_Row object, with using db adapter for fetching instead of Zend_Db_Table?
For example, I have a next method
public function isAllowed($ip = null)
{
$check = $this->_dbTable->fetchRow(
$this->_dbTable->select()
->from($this->_dbTable->getName(), array('id'))
->where('ip = ?', $ip)
);
var_dump($check);
}
if I work with Zend_Db_Table I'll get Zend_Db_Table_Row object here, but I have to work with db adapter object (because of using master-slave replication), so I have something like this
public function isAllowed($ip = null)
{
$db = My_Db_ConnectionManager::getConnection('slave');
$check = $db->fetchRow($db->select()
->from($this->_dbTable->getName(), array('id'))
->where('ip = ?', $ip)
);
var_dump($check);
}
and here I get an array, how can I get Zend_Db_Table_Row here too?
Thanks.