protected function _afterLoad(\Magento\Framework\Model\AbstractModel $object)
    {
        if ($object->getId()) {
            $stores = $this->getStoreIdsFromThesaurusId($object->getId());
            $object->setStoreIds($stores);
        }

        return parent::_afterLoad($object);
    }
protected function _afterLoad(\Magento\Framework\Model\AbstractModel $object)
    {
        if ($object->getId()) {
            $stores = $this->getStoreIdsFromThesaurusId($object->getId());
            $object->setStoreIds($stores);
        }

        return parent::_afterLoad($object);
    }
protected function _afterLoad ( \ Magento \ Framework \ Model \ AbstractModel $ object ) { if ( $ object -> getId ( ) ) { $ stores = $ this -> getStoreIdsFromThesaurusId ( $ object -> getId ( ) ) ; $ object -> setStoreIds ( $ stores ) ; } return parent :: _afterLoad ( $ object ) ; }
Perform operations after object load, restore linking with terms and stores

@SuppressWarnings(PHPMD.CamelCaseMethodName)

@param \Magento\Framework\Model\AbstractModel $object Thesaurus being loaded

@return $this
Perform operations after object load restore linking with terms and stores