I'm trying
$query = $em->createQuery(
'SELECT id, name, beginDate, endDate FROM SmartguideEntityBundle:Promotion1 UNION SELECT id, name, beginDate, endDate FROM SmartguideEntityBundle:Promotion2'
);
But result is
Error: Expected end of string, got 'SELECT'
How can I resolve it
Try to define an alias, as in
EDIT: If you take a look at this link, ti shows how to execute the query using RAW SQL (SQL query with UNION in Doctrine Symfony)