private function saveReferenceTerms(\Magento\Framework\Model\AbstractModel $object, $referenceTerms)
    {
        if ($object->getType() === ThesaurusInterface::TYPE_EXPANSION) {
            $this->getConnection()->insertOnDuplicate(
                $this->getTable(ThesaurusInterface::REFERENCE_TABLE_NAME),
                $referenceTerms,
                array_keys(current($referenceTerms))
            );
        }

        return $this;
    }
private function saveReferenceTerms(\Magento\Framework\Model\AbstractModel $object, $referenceTerms)
    {
        if ($object->getType() === ThesaurusInterface::TYPE_EXPANSION) {
            $this->getConnection()->insertOnDuplicate(
                $this->getTable(ThesaurusInterface::REFERENCE_TABLE_NAME),
                $referenceTerms,
                array_keys(current($referenceTerms))
            );
        }

        return $this;
    }
private function saveReferenceTerms ( \ Magento \ Framework \ Model \ AbstractModel $ object , $ referenceTerms ) { if ( $ object -> getType ( ) === ThesaurusInterface :: TYPE_EXPANSION ) { $ this -> getConnection ( ) -> insertOnDuplicate ( $ this -> getTable ( ThesaurusInterface :: REFERENCE_TABLE_NAME ) , $ referenceTerms , array_keys ( current ( $ referenceTerms ) ) ) ; } return $ this ; }
Saves reference terms for a thesaurus. Reference term are used by expansions thesaurus only.

@param \Magento\Framework\Model\AbstractModel $object         Thesaurus to save
@param array                                  $referenceTerms Thesaurus reference terms

@return $this
Saves reference terms for a thesaurus . Reference term are used by expansions thesaurus only .