Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-402

aliased fields from root class are not recognized als root class fields, if they're the only one

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: Query
    • Labels:
      None

      Description

      If all selected fields from the root class are aliased,
      Doctrine_Query->processPendingFields() won't recognize them as fields of the table and the following exception will be thrown:
      "The root class of the query (alias c) must have at least one field selected."

      In my real world example, this could only be fixed, using the primary key of the root class/table in select

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            guilhermeblanco Guilherme Blanco
            Reporter:
            cmi Christian Michel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: