我想通过在Collection中应用OR条件从表中获取数据
我正在使用这些代码行
$collect = Mage::getModel('storelocater/storelocater')->getCollection()->addFieldToFilter(array(
大批(
'属性' => '国家',
'eq' => '印度'),
数组(
'属性' => '状态',
'eq' => '向上')
));
回声 $data = $collect->getSelect();
它打印输出
SELECT main_table.* FROM storelocaterAS main_tableWHERE (( Array = '' ) OR ( Array = '' ))
我也使用了addAttributeToFilter而不是addFieldToFilter但它返回致命错误