Ejemplo n.º 1
0
 /**
  * Prepare related orders collection
  *
  * @param array|string $fieldsToSelect
  * @return void
  */
 protected function _prepareRelatedOrders($fieldsToSelect = '*')
 {
     if (null === $this->_relatedOrders) {
         $this->_orderCollection->addFieldToSelect($fieldsToSelect)->addFieldToFilter('customer_id', $this->_registry->registry(RegistryConstants::CURRENT_CUSTOMER_ID))->setOrder('entity_id', 'desc');
         $this->_relatedOrders = $this->_recurringCollectionFilter->byIds($this->_orderCollection, $this->_recurringPayment->getId());
     }
 }