public function getMapRecords($mapUid, $nbLaps, $sort, $nbRecords)
    {
        $query = new RecordQuery();
        $query->filterByMapuid($mapUid);
        $query->filterByNblaps($nbLaps);
        $query->orderByScore($sort);
        $query->limit($nbRecords);

        $result = $query->find();
        $result->populateRelation('Player');
        RecordTableMap::clearInstancePool();

        return $result->getData();
    }
public function getMapRecords($mapUid, $nbLaps, $sort, $nbRecords)
    {
        $query = new RecordQuery();
        $query->filterByMapuid($mapUid);
        $query->filterByNblaps($nbLaps);
        $query->orderByScore($sort);
        $query->limit($nbRecords);

        $result = $query->find();
        $result->populateRelation('Player');
        RecordTableMap::clearInstancePool();

        return $result->getData();
    }
public function getMapRecords ( $ mapUid , $ nbLaps , $ sort , $ nbRecords ) { $ query = new RecordQuery ( ) ; $ query -> filterByMapuid ( $ mapUid ) ; $ query -> filterByNblaps ( $ nbLaps ) ; $ query -> orderByScore ( $ sort ) ; $ query -> limit ( $ nbRecords ) ; $ result = $ query -> find ( ) ; $ result -> populateRelation ( 'Player' ) ; RecordTableMap :: clearInstancePool ( ) ; return $ result -> getData ( ) ; }
Get records on a certain map.

@param $mapUid
@param $nbLaps
@param $sort
@param $nbRecords

@return Record[]|\Propel\Runtime\Collection\ObjectCollection
Get records on a certain map .