DDC-613: QueryBuilder doesn't permit any functions in select() #752

Closed
opened 2026-01-22 12:49:13 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (May 25, 2010).

Originally assigned to: @jwage on GitHub.

Jira issue originally created by user @hobodave:

Example:

        $expr = $qb->expr();
        $qb->select($expr->count('e.id'));

Result:

InvalidArgumentException: Expression of type 'Doctrine\ORM\Query\Expr\Func' not allowed in this context.

Originally created by @doctrinebot on GitHub (May 25, 2010). Originally assigned to: @jwage on GitHub. Jira issue originally created by user @hobodave: Example: ``` $expr = $qb->expr(); $qb->select($expr->count('e.id')); ``` Result: InvalidArgumentException: Expression of type 'Doctrine\ORM\Query\Expr\Func' not allowed in this context.
admin added the Bug label 2026-01-22 12:49:13 +01:00
admin closed this issue 2026-01-22 12:49:13 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 16, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jun 16, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#752