コード例 #1
0
 /**
  * Apply sorting and filtering to collection
  *
  * @return $this
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->addFieldToSelect('entity_id')->addFieldToSelect('created_at')->addFieldToSelect('increment_id')->addFieldToSelect('total_qty')->addFieldToSelect('shipping_name')->setOrderFilter($this->getOrder());
     return $this;
 }
コード例 #2
0
ファイル: Collection.php プロジェクト: nja78/magento2
 /**
  * Apply sorting and filtering to collection
  *
  * @return $this
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->setOrderFilter($this->getOrder());
     return $this;
 }