Example #1
0
 /**
  * Processing object after save data
  *
  * @return $this
  */
 public function afterSave()
 {
     $this->_eavConfig->clear();
     return parent::afterSave();
 }
Example #2
0
 /**
  * Processing object after save data
  *
  * @return \Magento\Framework\Model\AbstractModel
  */
 public function afterSave()
 {
     /**
      * Fix saving attribute in admin
      */
     $this->_eavConfig->clear();
     return parent::afterSave();
 }
Example #3
0
 /**
  * Processing object after save data
  *
  * @return \Magento\Framework\Model\AbstractModel
  */
 public 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(self::KEY_IS_GLOBAL)) {
         $this->_indexerEavProcessor->markIndexerAsInvalid();
     }
     return parent::afterSave();
 }