How to override/overload setters of BaseUser (from FosUserBundle)?
===

I am using Symfony 2.0.

I have an Employee class which extends from BaseUser

I need to override setUsername method (among others) :

My method is Employee.php is like that :<code>

     public function setUsername()
    {
        $name=$this->getName();
       
        $this->username=($name);//just an example
     }

But when I clear the cache I have the error :
<code>

     MyBundle\Entity\Employee::setUsername() must be compatible with that of FOS\UserBundle\Model\UserInterface::setUsername()
</code>

How can I override this function ? I tried parent::setUsername() but I have a parse error: <code>

    PHP Parse error:  syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting '('</code>
