$parameters = array( 'thread' => $thread_array['thread'], 'type' => '%'.$thread_array['type'].'%');$dql = 'SELECt p.type,AVG(p.value) FROM TrackerMembersBundle:Rating p WHERe p.thread=:thread AND type LIKE :type GROUP BY p.thread,p.type';$query = $this->em->createQuery($dql) ->setParameters($parameters);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)