I am trying to add a grid in which I need to do a left join.
protected function _prepareCollection()
{
$collection = Mage::getResourceModel('admin/user_collection')->join("school/school",'ref_id = referer_id',"school_name",**"left"**);
var_dump((string)$collection->getSelect());
$this->setCollection($collection);
return parent::_prepareCollection();
}
Even though I have defined “left” when I see the dump it shows:
SELECT main_table.*, school/school.school_name FROM admin_user AS main_table INNER JOIN school AS school/school ON ref_id = referer_id
I tried to do a
$collection = Mage::getResourceModel('admin/user_collection')->**joinLeft**("school/school",'ref_id = referer_id',"school_name","left");
but for which my system does not show me any var_dump hangs.
try
getSelect()before thejoin