Doctrine PHPCR
  1. Doctrine PHPCR
  2. PHPCR-67

Fetching a node beforehand ruins ordering of collections

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Labels:
      None

      Description

      Two documents: Category and Subcategory
      Category has $subcategories as a PHPCRODM\Children

      If Category A has 3 subcategories B1 B2 B3.

      If A's subcategories are fetched we would receive them in the following order: B1 B2 B3.

      Now if however we fetched the B2 node using the DocumentManager at an earlier line and then fetched the subcategories of A, we would receive them in the following order:
      B2 B1 B3

        Activity

        Hide
        Lukas Kahwe added a comment -

        i tried to reproduce the issue in a test case:
        https://github.com/doctrine/phpcr-odm/commit/7a3f690cd407f5fc75af4ae3d70b4360c5a499c7

        however the test passes. so either the issue is already fixed or i just didn't understand the bug description properly.

        Show
        Lukas Kahwe added a comment - i tried to reproduce the issue in a test case: https://github.com/doctrine/phpcr-odm/commit/7a3f690cd407f5fc75af4ae3d70b4360c5a499c7 however the test passes. so either the issue is already fixed or i just didn't understand the bug description properly.

          People

          • Assignee:
            Lukas Kahwe
            Reporter:
            Freddy H.
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: