Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2006

one2many to self inverts table aliasses and creates wrong db query

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Labels:
      None
    • Environment:
      Debian VM, MySQL, Zend-Framework

      Description

      See attachment for description.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        The query is correct, "c.parentCategory c2" generates the right query as per your screenshot. Its just not the order of the queries that you want, Native SQL wil help you here.

        Show
        Benjamin Eberlei added a comment - The query is correct, "c.parentCategory c2" generates the right query as per your screenshot. Its just not the order of the queries that you want, Native SQL wil help you here.
        Hide
        Benjamin Eberlei added a comment -

        What version of Doctrine are you using? This sounds like a bug that was fixed some time ago

        Show
        Benjamin Eberlei added a comment - What version of Doctrine are you using? This sounds like a bug that was fixed some time ago
        Hide
        Fabio B. Silva added a comment -

        Hi Xavier,

        Could you past your entities and mappings please ?

        Thanks

        Show
        Fabio B. Silva added a comment - Hi Xavier, Could you past your entities and mappings please ? Thanks

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Xavier Dekeyster
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: