public function removeUser(User $user)
    {
        if ($this->users->contains($user)) {
            $this->users->removeElement($user);
        }

        return $this;
    }
public function removeUser(User $user)
    {
        if ($this->users->contains($user)) {
            $this->users->removeElement($user);
        }

        return $this;
    }
public function removeUser ( User $ user ) { if ( $ this -> users -> contains ( $ user ) ) { $ this -> users -> removeElement ( $ user ) ; } return $ this ; }
Removes an user to team.

@param User $user

@return Team
Removes an user to team .