public function loadForPlayers($mapUid, $nbLaps, $logins)
    {
        $logins = array_diff($logins, array_keys($this->recordsPerPlayer));

        if (!empty($logins)) {
            $records = $this->recordQueryBuilder->getPlayerMapRecords($mapUid, $nbLaps, $logins);

            foreach ($records as $record) {
                $this->recordsPerPlayer[$record->getPlayer()->getLogin()] = $record;
            }
        }
    }
public function loadForPlayers($mapUid, $nbLaps, $logins)
    {
        $logins = array_diff($logins, array_keys($this->recordsPerPlayer));

        if (!empty($logins)) {
            $records = $this->recordQueryBuilder->getPlayerMapRecords($mapUid, $nbLaps, $logins);

            foreach ($records as $record) {
                $this->recordsPerPlayer[$record->getPlayer()->getLogin()] = $record;
            }
        }
    }
public function loadForPlayers ( $ mapUid , $ nbLaps , $ logins ) { $ logins = array_diff ( $ logins , array_keys ( $ this -> recordsPerPlayer ) ) ; if ( ! empty ( $ logins ) ) { $ records = $ this -> recordQueryBuilder -> getPlayerMapRecords ( $ mapUid , $ nbLaps , $ logins ) ; foreach ( $ records as $ record ) { $ this -> recordsPerPlayer [ $ record -> getPlayer ( ) -> getLogin ( ) ] = $ record ; } } }
Load records for certain players only.

@param $mapUid
@param $nbLaps
@param $logins
@throws \Propel\Runtime\Exception\PropelException
Load records for certain players only .