plugin/team/Manager/TeamManager.php
public function emptyTeams(array $teams)
    {
        $this->om->startFlushSuite();

        foreach ($teams as $team) {
            $users = $team->getRole()->getUsers()->toArray();
            $this->unregisterUsersFromTeam($team, $users);
        }
        $this->om->endFlushSuite();
    }
public function emptyTeams(array $teams)
    {
        $this->om->startFlushSuite();

        foreach ($teams as $team) {
            $users = $team->getRole()->getUsers()->toArray();
            $this->unregisterUsersFromTeam($team, $users);
        }
        $this->om->endFlushSuite();
    }
public function emptyTeams ( array $ teams ) { $ this -> om -> startFlushSuite ( ) ; foreach ( $ teams as $ team ) { $ users = $ team -> getRole ( ) -> getUsers ( ) -> toArray ( ) ; $ this -> unregisterUsersFromTeam ( $ team , $ users ) ; } $ this -> om -> endFlushSuite ( ) ; }
Empty teams from all members.

@param array $teams
Empty teams from all members .