$select->joinLeft(
array('order_table' => $collection->getTable('sales/order')),
'order_table.entity_id=main_table.entity_id',
array('admin_user_id' => 'admin_user_id')
);
エラーの原因となっているカスタム magento モジュールで
Integrity constraint violation: 1052 Column 'created_at' in where clause is ambiguous
このコードをコメントアウトすると、magento を正しく実行できます。コードはオブザーバーにあります。
public function salesOrderGridCollectionLoadBefore($observer)
{
$collection = $observer->getOrderGridCollection();
$select = $collection->getSelect();
$select->joinLeft(
array('order_table' => $collection->getTable('sales/order')),
'order_table.entity_id=main_table.entity_id',
array('admin_user_id' => 'admin_user_id')
);
}
誰でも修正をアドバイスできますか?これは私のコードでもモジュールでもなく、それが行っていることすべてを完全には理解していません。
テーブルにフィールドを追加して入力すると、注文ページを使用して検索できるようになると思います。
前もって感謝します。-T