Skip to content

Commit 71927b3

Browse files
ACPT-1194-part2: resetting Magento/Quote/Model/ResourceModel/Quote/Item/Collection
1 parent 0bb4f53 commit 71927b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@ protected function _construct()
127127
$this->_init(QuoteItem::class, ResourceQuoteItem::class);
128128
}
129129

130+
/**
131+
* @inheritDoc
132+
*/
133+
public function _resetState(): void
134+
{
135+
parent::_resetState();
136+
$this->_productIds = [];
137+
$this->_quote = null;
138+
}
139+
130140
/**
131141
* Retrieve store Id (From Quote)
132142
*

0 commit comments

Comments
 (0)