/** * Processing object after save data * * @return \Magento\Framework\Model\AbstractModel */ protected function _afterSave() { /** * Fix saving attribute in admin */ $this->_eavConfig->clear(); if ($this->_isOriginalEnabledInFlat() != $this->_isEnabledInFlat()) { $this->_productFlatIndexerProcessor->markIndexerAsInvalid(); } if ($this->_isOriginalIndexable() !== $this->isIndexable() || $this->isIndexable() && $this->dataHasChangedFor('is_global')) { $this->_indexerEavProcessor->markIndexerAsInvalid(); } return parent::_afterSave(); }
/** * Processing object after save data * * @return \Magento\Framework\Model\AbstractModel */ protected function _afterSave() { /** * Fix saving attribute in admin */ $this->_eavConfig->clear(); return parent::_afterSave(); }
/** * Processing object after save data * * @return $this */ protected function _afterSave() { $this->_eavConfig->clear(); return parent::_afterSave(); }