Updated Team::getTeams() to use arrayIdToModel()