我正在创建一个模块,其中我尝试了JOIN
两个Collection。
第一个是自定义收藏('custom/custom')
,第二个是('customer/customer')
,我想根据自定义客户属性' 推送通知'来过滤收藏集。
到目前为止我做了什么:
$collection = Mage::getModel('custom/custom')->getCollection();
$collection->getSelect()->join(
array('cust' => 'customer_entity'),
'cust.entity_id = main_table.user_id');
输出
[id] => 1
[user_id] => 1
[registration_id] => 123456
[device_type] => 0
[entity_id] => 1
[entity_type_id] => 1
[attribute_set_id] => 0
[website_id] => 1
[email] => deepak@gmail.com
[group_id] => 1
[increment_id] =>
[store_id] => 1
[created_at] => 2015-10-03 13:26:37
[updated_at] => 2015-10-22 06:25:33
[is_active] => 1
[disable_auto_group_change] => 0
我的查询:如何与客户('客户/)加入自定义('自定义/自定义')集合客户')基于属性pushnotification
的收集过滤器?