Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1392

Merge for not initialized entity proxy object with set ID fails

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      Problem is that UnitOfWork::doMerge() calls ClassMetadata::getIdentifierValues() for the entity but that function doesn't have case for not initialized proxy. It just reads the Id properties from the object's reflection.

      It should load the proxy or get the ID stored inside the proxy object or doMerge must initialize it maybe.

        Issue Links

          Activity

          Aigars Gedroics created issue -
          Aigars Gedroics made changes -
          Field Original Value New Value
          Attachment DDC1392Test.php [ 11066 ]
          Benjamin Eberlei made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.1.2 [ 10154 ]
          Resolution Fixed [ 1 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 13038 ] jira-feedback [ 15039 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 15039 ] jira-feedback2 [ 16903 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 16903 ] jira-feedback3 [ 19156 ]
          Marco Pivetta made changes -
          Link This issue is referenced by DDC-3368 [ DDC-3368 ]

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Aigars Gedroics
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: