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

No reference to a loaded document if proxy id = document id

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0BETA2
    • Component/s: UnitOfWork
    • Labels:
      None

      Description

      If I load a document and it has an internal reference to the same document with the same ID, only responds to changes in the proxy document. The main document will not be considered and any change has no effect.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        Can I see a test case?

        Show
        Jonathan H. Wage added a comment - Can I see a test case?
        Show
        Thomas Adam added a comment - test case: http://github.com/tecbot/mongodb-odm/commit/df4e3102b4b29f7e7ad6aa24800457b52f93b14d
        Hide
        Jonathan H. Wage added a comment -

        Thanks! This is fixed now. The reference will now be the same instance as the root document itself instead of another instance of the same document.

        Show
        Jonathan H. Wage added a comment - Thanks! This is fixed now. The reference will now be the same instance as the root document itself instead of another instance of the same document.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Thomas Adam
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: