public function addSynonym(SynonymCreateStruct $createStruct)
    {
        $mainTagData = $this->gateway->getBasicTagData($createStruct->mainTagId);
        $newSynonymId = $this->gateway->createSynonym($createStruct, $mainTagData);

        return $this->load($newSynonymId);
    }
public function addSynonym(SynonymCreateStruct $createStruct)
    {
        $mainTagData = $this->gateway->getBasicTagData($createStruct->mainTagId);
        $newSynonymId = $this->gateway->createSynonym($createStruct, $mainTagData);

        return $this->load($newSynonymId);
    }
public function addSynonym ( SynonymCreateStruct $ createStruct ) { $ mainTagData = $ this -> gateway -> getBasicTagData ( $ createStruct -> mainTagId ) ; $ newSynonymId = $ this -> gateway -> createSynonym ( $ createStruct , $ mainTagData ) ; return $ this -> load ( $ newSynonymId ) ; }
Creates a synonym.

@param \Netgen\TagsBundle\SPI\Persistence\Tags\SynonymCreateStruct $createStruct

@return \Netgen\TagsBundle\SPI\Persistence\Tags\Tag The created synonym
Creates a synonym .