public function removeAllTeamMembers()
    {
        $team = $this->getTeam();
        $last_team = $team;

        foreach ($team->getAccounts() as $account) {
            if (!$account->isTeamAdmin()) {
                $last_team = $this->removeTeamMember($account->getId());
            }
        }

        return $last_team;
    }
public function removeAllTeamMembers()
    {
        $team = $this->getTeam();
        $last_team = $team;

        foreach ($team->getAccounts() as $account) {
            if (!$account->isTeamAdmin()) {
                $last_team = $this->removeTeamMember($account->getId());
            }
        }

        return $last_team;
    }
public function removeAllTeamMembers ( ) { $ team = $ this -> getTeam ( ) ; $ last_team = $ team ; foreach ( $ team -> getAccounts ( ) as $ account ) { if ( ! $ account -> isTeamAdmin ( ) ) { $ last_team = $ this -> removeTeamMember ( $ account -> getId ( ) ) ; } } return $ last_team ; }
Removes all team members from current Team

@return Team
@throws BaseException
Removes all team members from current Team