更新CGridView yii1框架

时间:2016-01-29 16:21:00

标签: yii cgridview

尝试了所有可能的选项,但这种关系不想工作。但是我得到了这个错误

  

CDbCommand无法执行SQL语句:SQLSTATE [23000]:完整性约束违规:1052列' id'顺序条款含糊不清。执行的SQL语句是:SELECT tid AS t0_c0tuser_id AS t0_c1t。{ {1}} AS store_idt0_c2t AS status_idt0_c3t AS bill_to_id,{{1 } {。{1}} AS t0_c4ttotal AS t0_c5tnew AS t0_c6tpay_method_id AS t0_c7tcreated AS t0_c8tupdated AS { {1}},t0_c9t AS billing_to_firstt0_c10t AS billing_to_lastt0_c11。{{1 } tbilling_to_faxt0_c12 AS tcc_last_fourt0_c13 AS tcheck_image_idt0_c14 AS tcommentst0_c15 AS twarning_idt0_c16 AS t,{ {1}}。artworkRec AS t0_c17tproofSent AS t0_c18tproofApprvd AS {{1 },t0_c19t AS inHandst0_c20orderItems AS idt1_c0orderItems AS order_idt1_c1orderItems AS product_idt1_c2orderItems AS factory_idt1_c3。{ {1}} AS orderItemsqtyt1_c4 AS orderItemspricet1_c5 AS orderItems,{{1 } {。{1}} AS logo_namet1_c6orderItems AS po_numbert1_c7orderItems AS art_idt1_c8orderItems AS art_status_idt1_c9orderItems AS send_prooft1_c10orderItems AS { {1}},art_commentst1_c11 AS orderItems FROM rush_option_id t1_c12 LEFT OUTER JOIN orderItems special_instructions ON({{ 1}}。t1_c13 = orderItemsmisc_charge_name)WHERE(orderItems.po_number = 213)ORDER BY ID DESC LIMIT 10

我有一张桌子。 enter image description here

t1_c14

我很乐意提供任何帮助

1 个答案:

答案 0 :(得分:0)

'排序'=>阵列(             'defaultOrder'=>'t.id DESC',         ),