plugin/blog/Manager/TagManager.php
public function loadOrCreateTag($name)
    {
        $tag = $this->loadTag($name);
        if (null === $tag) {
            $tag = $this->createTag($name);
        }

        return $tag;
    }
public function loadOrCreateTag($name)
    {
        $tag = $this->loadTag($name);
        if (null === $tag) {
            $tag = $this->createTag($name);
        }

        return $tag;
    }
public function loadOrCreateTag ( $ name ) { $ tag = $ this -> loadTag ( $ name ) ; if ( null === $ tag ) { $ tag = $ this -> createTag ( $ name ) ; } return $ tag ; }
Load or Create tag following to a given name.

@param string $name

@return \Icap\BlogBundle\Entity\Tag
Load or Create tag following to a given name .