/** * @inheritdoc */ protected function processAfterSaves(\Magento\Framework\Model\AbstractModel $object) { $this->_afterSave($object); $this->entitySnapshot->registerSnapshot($object); $object->afterSave(); $this->entityRelationComposite->processRelations($object); }
/** * @inheritdoc */ protected function beforeAddLoadedItem(\Magento\Framework\Object $item) { $this->entitySnapshot->registerSnapshot($item); return $item; }