public function buildPlayerMatch2() { $options = []; $options['clearSelect'] = true; $options['select'][] = \Own\Bus\PlayerMatch\Data::getList(['id', 'player_id']); $options['select'][] = \Own\Bus\Player\Data::getList(['id', 'username'], 'player_match_player'); $options['join'][] = 'bus_player player_match_player ON player_match_player.id = player_match.player_id'; $items = \Own\Bus\PlayerMatch\Data::loadAll($options); return Util\Form::buildDropdownList('player_match2_id' . $this->unique, $items, 'id', 'player', $this->getModel()->getPlayerMatch2Id()); }