You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$dql = "SELECT u, 'some scalar string', count(u.groups) AS num FROM User u JOIN u.groups g GROUP BY u.id";
with error
[Doctrine\ORM\Query\QueryException]
[Semantical Error] line 0, col 40 near 'localizations)': Error: Invalid PathExpression. StateFieldPathExpression or SingleValuedAssociationField expected.
Should be "count(g.id)" instead of "count(u.groups)".
Jira issue originally created by user @beberlei:
DQL Example about count(*) related entity is wrong
The text was updated successfully, but these errors were encountered: