Details

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

      Description

      Hi,

      Bug checked on versions:
      doctrine/mongodb-odm (1.0.0-BETA7)
      doctrine/mongodb-odm-bundle (v3.0.0-BETA3)
      and
      doctrine/mongodb-odm (dev-master 6fd7a46)
      doctrine/mongodb-odm-bundle (dev-master 23c08a4)

      I've created unique index on embedded document and ODM seem not to be working properly. When unique index is violated MongoCursorException is thrown and this behavior is desired.
      But, the document sometimes is persisted anyway. Document structure is invalid.

      Thrown exception:
      mymongoserver.xx:27017: E11000 duplicate key error index: prj.Grid.$boxes_offer_$id_1_boxes_tag_$id_1 dup key: { : ObjectId('51555bbe31bcb2c70e000001'), : "dom" }

      Grid document sketch:

      { _id: boxes:[DBref(Offer), DBref(Offer), DBref(Offer)] tag: DBref(Tag) }

      unique index on boxes.tag

      Any help would be appreciated.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Szymon Karnecki
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: