複数のフィールドのaddAttributeToSelectが機能しない
次のクエリを使用してユーザーの注文履歴を取得しようとしていますが、正常に機能しています。しかし、テーブルからすべての注文関連フィールドを返します $collection = Mage::getModel("sales/order")->getCollection() ->addAttributeToSelect('*') ->addFieldToFilter('customer_id', 400) ->setOrder('created_at', 'desc'); 特定のフィールドのみをフェッチしたいので、-> addAttributeToSelect( '*')の場合 used the following code ->addAttributeToSelect(array('created_at','customer_id','increment_id','updated_at','status','entity_id','state')) しかし、「フィールド名を判別できません」というエラーが発生します。