Skip to content

Commit 4819ec1

Browse files
author
Maksym Savich
committed
MAGETWO-35462: Refactor \Magento\Framework\Model\Resource\Db\AbstractDb only update changed fields
- CR changes
1 parent b417ebd commit 4819ec1

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
@@ -132,7 +132,7 @@ abstract class AbstractModel extends \Magento\Framework\Object
132132
*
133133
* @var array
134134
*/
135-
private $storedData = [];
135+
protected $storedData = [];
136136

137137
/**
138138
* @param \Magento\Framework\Model\Context $context
@@ -705,7 +705,7 @@ protected function _clearData()
705705
*
706706
* @return $this
707707
*/
708-
protected function updateStoredData()
708+
private function updateStoredData()
709709
{
710710
if (isset($this->_data)) {
711711
$this->storedData = $this->_data;

0 commit comments

Comments
 (0)