예제 #1
0
 /**
  * Enter description here ...
  * @param Game $oGame
  * @param RefereeType $oRefereeType
  * @param int $sorting
  * @return Referee
  */
 public static function getByGame(Game $oGame, RefereeType $oRefereeType, $sorting = 0)
 {
     $where = array('game_nefub_id' => $oGame->nefub_id, 'referee_type_id' => $oRefereeType->getId());
     if ($sorting) {
         $where['sorting'] = $sorting;
     }
     return self::getSingle($where);
 }