标签:
public function getChampionQuizzes($gameCategoryId) { $dql = "SELECT q FROM TronWebBundle:Quiz q LEFT JOIN q.league l WHERE q.league is not null AND l.gameCategory = :gameCategory"; $quiz = $this->getEntityManager() ->createQuery($dql) ->setParameter(‘gameCategory‘, $gameCategoryId) ->getResult(); return $quiz; }
标签:
原文地址:http://www.cnblogs.com/wlemory/p/5123867.html