/** * Construct Join dependency * @param object $model * @param array|string $associations */ public function __construct(Mad_Model_Base $model, $associations) { $this->_joins = array(new Mad_Model_Join_Base($model)); $this->_associations = $associations; $this->_baseRecordsHash = array(); $this->_tableAliases[$model->tableName()] = 1; $this->_build($associations); }
/** * Base join alias is direct name of the table * @return string */ public function aliasedTableName() { return $this->_model->tableName(); }