Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1236

GROUP BY does not work with functions

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC1
    • Fix Version/s: 2.2
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      The following query fails with Cannot group by undefined identification variable (yes CAST-Function was added). Would be nice to have such a feature,

      SELECT ...
      FROM Task t
      ...
      WHERE
        ...
      GROUP BY
        CAST(t.scheduledDate as date)
      

        Activity

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Andreas Hörnicke
          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: