File tree Expand file tree Collapse file tree 3 files changed +12
-21
lines changed
Eav/Model/ResourceModel/Entity Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -209,24 +209,6 @@ protected function _beforeSave(AbstractModel $object)
209209 return parent ::_beforeSave ($ object );
210210 }
211211
212- /**
213- * @inheritDoc
214- */
215- public function save (\Magento \Framework \Model \AbstractModel $ object )
216- {
217- $ this ->pillPut ->put ();
218- return parent ::save ($ object );
219- }
220-
221- /**
222- * @inheritDoc
223- */
224- public function delete (\Magento \Framework \Model \AbstractModel $ object )
225- {
226- $ this ->pillPut ->put ();
227- return parent ::delete ($ object );
228- }
229-
230212 /**
231213 * @inheritdoc
232214 *
@@ -263,6 +245,7 @@ protected function _afterSave(AbstractModel $object)
263245 $ object
264246 );
265247 $ this ->getConfig ()->clear ();
248+ $ this ->pillPut ->put ();
266249 return parent ::_afterSave ($ object );
267250 }
268251
@@ -277,6 +260,7 @@ protected function _afterSave(AbstractModel $object)
277260 protected function _afterDelete (AbstractModel $ object )
278261 {
279262 $ this ->getConfig ()->clear ();
263+ $ this ->pillPut ->put ();
280264 return $ this ;
281265 }
282266
Original file line number Diff line number Diff line change 4242use Magento \Sales \Api \Data \OrderInterface ;
4343use Magento \Sales \Api \Data \OrderInterfaceFactory as OrderFactory ;
4444use Magento \Sales \Api \OrderManagementInterface as OrderManagement ;
45- use Magento \Store \Model \StoreManager ;
4645use Magento \Store \Model \StoreManagerInterface ;
4746
4847/**
@@ -783,6 +782,5 @@ private function rollbackAddresses(
783782 public function _resetState (): void
784783 {
785784 $ this ->addressesToSync = [];
786- $ this ->storeManager = ObjectManager::getInstance ()->get (StoreManager::class);
787785 }
788786}
Original file line number Diff line number Diff line change 1818 */
1919class StoreManager implements
2020 \Magento \Store \Model \StoreManagerInterface,
21- \Magento \Store \Api \StoreWebsiteRelationInterface
21+ \Magento \Store \Api \StoreWebsiteRelationInterface,
22+ ResetAfterRequestInterface
2223{
2324 /**
2425 * Application run code
@@ -329,4 +330,12 @@ public function __debugInfo()
329330 {
330331 return ['currentStoreId ' => $ this ->currentStoreId ];
331332 }
333+
334+ /**
335+ * @inheritDoc
336+ */
337+ public function _resetState (): void
338+ {
339+ $ this ->reinitStores ();
340+ }
332341}
You can’t perform that action at this time.
0 commit comments