I have created a model in Zend Framework 1.x which extends the Zend_Db_Table_Abstract
class.
require_once 'Zend/Db/Table/Abstract.php';
class Model_Account extends Zend_Db_Table_Abstract
{
protected $_name = 'accounts';
public function someFunction()
{
//do something
}
}
In Zend Framework, you have to declare the table name in the $_name
property. At the moment, I only know how to declare one table name at a time, which means that my SQL statements will all be directed to the given table specified in the $_name
property.
Is there a way to declare multiple tables in the model so that I can effectively execute a join statement?