Take the 2-minute tour ×

I'm trying to build a query with Doctrine 2

$qb = $em->createQueryBuilder()

  echo "<pre>";
echo ($qb->execute());
echo "</pre>";

for some reason I'm getting an error:

Fatal error: Uncaught exception 'Doctrine\ORM\Query\QueryException' with message '[Syntax Error] line 0, col 7: Error: Expected IdentificationVariable | StateFieldPathExpression | AggregateExpression | "(" Subselect ")" | ScalarExpression, got '*'' in /home/dodo/doctrine-orm/Doctrine/ORM/Query/QueryException.php on line 42

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

There is no such a thing as "global wildcard" - you should use c.*.

share|improve this answer
add comment

Your Answer


