public function addUsers(ArrayCollection $users)
    {
        foreach ($users as $user) {
            $user->addTeam($this);
            $this->users->add($user);
        }
    }
public function addUsers(ArrayCollection $users)
    {
        foreach ($users as $user) {
            $user->addTeam($this);
            $this->users->add($user);
        }
    }
public function addUsers ( ArrayCollection $ users ) { foreach ( $ users as $ user ) { $ user -> addTeam ( $ this ) ; $ this -> users -> add ( $ user ) ; } }
Add users to the team.

@param ArrayCollection $users

@return void
Add users to the team .