SELECT u FROM AcmeBundle:Users u The statement above returns all records from the users table. What if I want to add something else, like:
SELECT u, ( SELECT s.name FROM AcmeBundle:Shop s ) AS shop_name FROM AcmeBundle:Users u Executing the second query throws an error that userId for array with keys "u, shop_name" does not exist. What's wrong?