public function majRankMedal()
    {
        $players = $this->findBy(array(), array('chartRank0' => 'DESC', 'chartRank1' => 'DESC', 'chartRank2' => 'DESC', 'chartRank3' => 'DESC'));

        Ranking::addObjectRank($players, 'rankMedal', array('chartRank0', 'chartRank1', 'chartRank2', 'chartRank3'));
        $this->getEntityManager()->flush();
    }
public function majRankMedal()
    {
        $players = $this->findBy(array(), array('chartRank0' => 'DESC', 'chartRank1' => 'DESC', 'chartRank2' => 'DESC', 'chartRank3' => 'DESC'));

        Ranking::addObjectRank($players, 'rankMedal', array('chartRank0', 'chartRank1', 'chartRank2', 'chartRank3'));
        $this->getEntityManager()->flush();
    }
public function majRankMedal ( ) { $ players = $ this -> findBy ( array ( ) , array ( 'chartRank0' => 'DESC' , 'chartRank1' => 'DESC' , 'chartRank2' => 'DESC' , 'chartRank3' => 'DESC' ) ) ; Ranking :: addObjectRank ( $ players , 'rankMedal' , array ( 'chartRank0' , 'chartRank1' , 'chartRank2' , 'chartRank3' ) ) ; $ this -> getEntityManager ( ) -> flush ( ) ; }
Update column rankMedal
Update column rankMedal