/** * After save rule * Re-declared for populate rate calculations * * @return $this */ protected function _afterSave() { parent::_afterSave(); $this->saveCalculationData(); $this->_eventManager->dispatch('tax_settings_change_after'); return $this; }
/** * The "After save" actions * * @return $this */ protected function _afterSave() { parent::_afterSave(); if ($this->_oauthData->isCleanupProbability()) { $this->getResource()->deleteOldEntries($this->_oauthData->getCleanupExpirationPeriod()); } return $this; }
/** * Save related items * * @return $this */ protected function _afterSave() { parent::_afterSave(); if (null !== $this->_addresses) { $this->getAddressesCollection()->save(); } if (null !== $this->_items) { $this->getItemsCollection()->save(); } if (null !== $this->_payments) { $this->getPaymentsCollection()->save(); } return $this; }
/** * Save related items * * @return $this */ protected function _afterSave() { parent::_afterSave(); if (null !== $this->_itemCollection) { $this->getItemCollection()->save(); } return $this; }
/** * Reindex CatalogInventory save event * * @return $this */ protected function _afterSave() { parent::_afterSave(); if ($this->_processIndexEvents) { $this->_stockIndexerProcessor->reindexRow($this->getProductId()); } return $this; }
/** * Process data after model is saved * * @return $this */ protected function _afterSave() { $this->_role = null; return parent::_afterSave(); }
/** * After save process * * @return $this */ protected function _afterSave() { $this->getResource()->saveItemTitle($this); return parent::_afterSave(); }
/** * Run reindex process after data save * * @return $this */ protected function _afterSave() { parent::_afterSave(); $this->_indexer->processEntityAction($this, self::ENTITY, \Magento\Index\Model\Event::TYPE_SAVE); return $this; }
/** * After object save * * @return $this */ protected function _afterSave() { if (null == !$this->_orderItem) { $this->_orderItem->save(); } parent::_afterSave(); return $this; }
/** * After save process * * @return $this */ protected function _afterSave() { parent::_afterSave(); $this->_getResource()->saveLabel($this); $this->_getResource()->savePrices($this); return $this; }
/** * Save rate titles * * @return \Magento\Tax\Model\Calculation\Rate */ protected function _afterSave() { $this->saveTitles(); $this->_eventManager->dispatch('tax_settings_change_after'); return parent::_afterSave(); }
/** * Invalidate related cache if instance contain layout updates * * @return $this */ protected function _afterSave() { if ($this->dataHasChangedFor('page_groups') || $this->dataHasChangedFor('widget_parameters')) { $this->_invalidateCache(); } return parent::_afterSave(); }
/** * Clean cache for front-end menu * * @return $this */ protected function _afterSave() { if ($this->hasCategoryId()) { $this->_cacheTag = array(\Magento\Catalog\Model\Category::CACHE_TAG, \Magento\Store\Model\Group::CACHE_TAG); } parent::_afterSave(); return $this; }
/** * {@inheritdoc} */ protected function _afterSave() { $customerData = (array) $this->getData(); $customerData[CustomerData::ID] = $this->getId(); $dataObject = $this->_customerDataBuilder->populateWithArray($customerData)->create(); $customerOrigData = (array) $this->getOrigData(); $customerOrigData[CustomerData::ID] = $this->getId(); $origDataObject = $this->_customerDataBuilder->populateWithArray($customerOrigData)->create(); $this->_eventManager->dispatch('customer_save_after_data_object', array('customer_data_object' => $dataObject, 'orig_customer_data_object' => $origDataObject)); return parent::_afterSave(); }
/** * @return AbstractModel * @throws \Magento\Framework\Model\Exception */ protected function _afterSave() { $this->getValueInstance()->unsetValues(); if (is_array($this->getData('values'))) { foreach ($this->getData('values') as $value) { $this->getValueInstance()->addValue($value); } $this->getValueInstance()->setOption($this)->saveValues(); } elseif ($this->getGroupByType($this->getType()) == self::OPTION_GROUP_SELECT) { throw new Exception(__('Select type options required values rows.')); } return parent::_afterSave(); }
/** * Save item options after item saved * * @return $this */ protected function _afterSave() { $this->_saveItemOptions(); return parent::_afterSave(); }
/** * Processing object before save data * * @return $this */ protected function _afterSave() { if (!$this->_catalogData->isPriceGlobal() && $this->getWebsiteId()) { $this->getResource()->saveSelectionPrice($this); if (!$this->getDefaultPriceScope()) { $this->unsSelectionPriceValue(); $this->unsSelectionPriceType(); } } parent::_afterSave(); }