本文整理汇总了PHP中Magento\Framework\Model\AbstractModel::_afterDelete方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractModel::_afterDelete方法的具体用法?PHP AbstractModel::_afterDelete怎么用?PHP AbstractModel::_afterDelete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Framework\Model\AbstractModel
的用法示例。
在下文中一共展示了AbstractModel::_afterDelete方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _afterDelete
/**
* Rewrite in order to clear configuration cache
*
* @return $this
*/
protected function _afterDelete()
{
parent::_afterDelete();
$this->_configCacheType->clean();
return $this;
}
示例2: _afterDelete
/**
* After rule delete
* Re-declared for dispatch tax_settings_change_after event
*
* @return $this
*/
protected function _afterDelete()
{
$this->_eventManager->dispatch('tax_settings_change_after');
return parent::_afterDelete();
}
示例3: _afterDelete
/**
* Rewrite in order to clear configuration cache
*
* @return $this
*/
protected function _afterDelete()
{
$this->_storeManager->clearWebsiteCache($this->getId());
parent::_afterDelete();
return $this;
}
示例4: _afterDelete
/**
* Update all relations after deleting theme
*
* @return $this
*/
protected function _afterDelete()
{
$stagingVersion = $this->getStagingVersion();
if ($stagingVersion) {
$stagingVersion->delete();
}
$this->getCollection()->updateChildRelations($this);
return parent::_afterDelete();
}