joining custom tables using magento commands
问题 I have been trying to join two custom table using magento's commands. After searching i came across this block of generic code $collection = Mage::getModel('module/model_name')->getCollection(); $collection->getSelect()->join( array('table_alias'=>$this->getTable('module/table_name')), 'main_table.foreign_id = table_alias.primary_key', array('table_alias.*'), 'schema_name_if_different'); Following this as template I have tried to join my tables together but have only returned errors such as