protected function _afterSave(\Magento\Framework\Model\AbstractModel $object) { parent::_afterSave($object); $this->saveStoreRelation($object); $this->saveTermsRelation($object); return $this; }