Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2283

Paginator with orderBy in joined data retrieve bad result

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: ORM
    • Labels:

      Description

      entity A have many entity B

      If DQL is something like "select A, B from A join B order by A.field1, B.field2"
      Then Paginator retrieve different Id by a query like :
      "select distinct a.id, a.field1, b.field2 from ( ....) order by a.field1 ASC , b.field2 ASC limit 15 offset 0"

      so, if a entity A have 20 entity B (and these sub-entity have all a different b.field2) then there's only 1 A retrieved

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jean-Philippe THEVENOUX
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: