Skip to content

Commit 7253c9d

Browse files
committed
#37561 Do not load Shipment and Creditmemos collections on Order model
1 parent 39ec4fa commit 7253c9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/Model/Order.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@ public function getShipmentsCollection()
19561956
{
19571957
if (empty($this->_shipments)) {
19581958
if ($this->getId()) {
1959-
$this->_shipments = $this->_shipmentCollectionFactory->create()->setOrderFilter($this)->load();
1959+
$this->_shipments = $this->_shipmentCollectionFactory->create()->setOrderFilter($this);
19601960
} else {
19611961
return false;
19621962
}
@@ -1973,7 +1973,7 @@ public function getCreditmemosCollection()
19731973
{
19741974
if (empty($this->_creditmemos)) {
19751975
if ($this->getId()) {
1976-
$this->_creditmemos = $this->_memoCollectionFactory->create()->setOrderFilter($this)->load();
1976+
$this->_creditmemos = $this->_memoCollectionFactory->create()->setOrderFilter($this);
19771977
} else {
19781978
return false;
19791979
}

0 commit comments

Comments
 (0)