magento grid collection多表查询字段冲突的解决,错误提示大概是这样的
Integrity constraint violation: 1052 Column 'increment_id' in where clause is ambiguous
使用 代码 'filter_index'=>'main_table.increment_id', 可以解决这个问题
解决方法例子代码如下:
$this->addColumn('real_order_id', array(
'header'=> Mage::helper('sales')->__('Order #'),
'width' => '80px',
'type' => 'text',
'index' => 'increment_id',
'filter_index'=>'main_table.increment_id',
));
|

ecshop仿绿森电器数码商城
人气:500
ecshop仿便利一百bianli100带
人气:2792
ecshop仿中国鲜花礼品网模
人气:3641
ecshop仿贝贝网2016母婴特卖
人气:614
shopex茶叶网模板
人气:1347
ecshop仿趣玩2012最新版
人气:720