Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-613

QueryBuilder doesn't permit any functions in select()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA1
    • Fix Version/s: 2.0-BETA3
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            David Abdemoulaie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: