我正在努力
$query = $em->createQuery(
'SELECT id, name, beginDate, endDate FROM SmartguideEntityBundle:Promotion1 UNION SELECT id, name, beginDate, endDate FROM SmartguideEntityBundle:Promotion2'
);
但结果是
Error: Expected end of string, got 'SELECT'
我该如何解决