Skip to content

Commit 082c063

Browse files
author
Maksym Savich
committed
MAGETWO-35461: Refactor \Magento\Framework\Model\AbstractModel
- CR changes
1 parent e4a7e6b commit 082c063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Model/AbstractModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function __construct(
162162
) {
163163
$this->_idFieldName = $this->_getResource()->getIdFieldName();
164164
}
165-
$this->updateStoredData();
165+
166166
parent::__construct($data);
167167
$this->_construct();
168168
}
@@ -620,7 +620,7 @@ public function afterDelete()
620620
$this->_eventManager->dispatch('model_delete_after', ['object' => $this]);
621621
$this->_eventManager->dispatch('clean_cache_by_tags', ['object' => $this]);
622622
$this->_eventManager->dispatch($this->_eventPrefix . '_delete_after', $this->_getEventData());
623-
$this->updateStoredData();
623+
$this->storedData = [];
624624
return $this;
625625
}
626626

0 commit comments

Comments
 (0)