Example #1
0
 /**
  * Retrieve the order the shipment for created for
  *
  * @return \Magento\Sales\Model\Order
  */
 public function getOrder()
 {
     if (!$this->_order instanceof \Magento\Sales\Model\Order) {
         $this->_order = $this->orderRepository->get($this->getOrderId());
     }
     return $this->_order->setHistoryEntityName($this->entityType);
 }
Example #2
0
 /**
  * Retrieve the order the invoice for created for
  *
  * @return \Magento\Sales\Model\Order
  */
 public function getOrder()
 {
     if (!$this->_order instanceof \Magento\Sales\Model\Order) {
         $this->_order = $this->_orderFactory->create()->load($this->getOrderId());
     }
     return $this->_order->setHistoryEntityName($this->entityType);
 }
Example #3
0
 /**
  * Retrieve the order the shipment for created for
  *
  * @return \Magento\Sales\Model\Order
  */
 public function getOrder()
 {
     if (!$this->_order instanceof \Magento\Sales\Model\Order) {
         $this->_order = $this->_orderFactory->create()->load($this->getOrderId());
     }
     return $this->_order->setHistoryEntityName(self::HISTORY_ENTITY_NAME);
 }