Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-135

[Cursor] ReferenceMany sort mapping not working

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0BETA3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Macosx

      Description

      I have a document like this:

      /** @Document */
      class Page
      {
      /** @Id */
      protected $id;

      /** @ReferenceMany(sort=

      {"order"="asc"}

      ) */
      protected $blocks;
      }

      If i have well understood things, i can do:

      $blocks = $dm->getRepository('Page')>find($id)>getBlocks();

      blocks should now be sorted by $order property.

      This behaviour doesn't seems to work (or maybe i'm missing something).
      In the attachment there's a test case

      i made the priority major because in my case i haven't found a workaround (i'm using nested referenceMany, a child can have children, which can have children, ..).

        Activity

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            jules b
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: