BlogBundle/Entity/Category.php
public function setName($name)
    {
        $this->name = $name;
        if($this->metaTitle=='')$this->metaTitle = $name;
        if($this->metaDescription=='')$this->metaDescription = $name;
        return $this;
    }
public function setName($name)
    {
        $this->name = $name;
        if($this->metaTitle=='')$this->metaTitle = $name;
        if($this->metaDescription=='')$this->metaDescription = $name;
        return $this;
    }
public function setName ( $ name ) { $ this -> name = $ name ; if ( $ this -> metaTitle == '' ) $ this -> metaTitle = $ name ; if ( $ this -> metaDescription == '' ) $ this -> metaDescription = $ name ; return $ this ; }
Set name

@param string $name
@return $this
Set name