预期结束字符串,得到'IS'

时间:2015-10-03 16:42:34

标签: php symfony doctrine-orm

Symfony抛出异常查询解析: 错误:字符串的预期结束,得到'IS'

$query = $em->createQuery('
    SELECT a,
    s2.id AS id_service,
    s2.priority AS priority,
    m.name AS map_name, m.id AS id_map
  FROM GameServerBundle:Server\Server a
    LEFT JOIN a.services ss
    LEFT JOIN ss.service s2
    LEFT JOIN a.map m
    LEFT JOIN a.modification mod
  WHERE a.isBanned = 0
  ORDER BY ss.serviceId IS EMPTY, priority DESC
');

0 个答案:

没有答案