SELECT - all right, no errors
$em = $this->get(\'doctrine.orm.entity_manager\');
$query = $em->createQuery(\"
SELECT c
FROM MyDemoBundle:Categ
LEFT JOIN, or JOINs in particular are only supported in UPDATE statements of MySQL. DQL abstracts a subset of common ansi sql, so this is not possible. Try with a subselect:
UPDATE MyDemoBundle:Category c SET c.isActive = false WHERE ?1 MEMBER OF c.projects;
(MEMBER OF is actually turning into a subselect here). I am not 100% sure if this works, but it is more likeli than the join.