$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'
我怎樣才能解決這個問題
可能重複(HTTP://計算器.com/questions/22453104/symfony-createquery-with-union) – Moonchild