Doctrine Project

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Doctrine MongoDB ODM
  • Doctrine MongoDB ODM
  • MODM-13

Problems with merge()

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.0ALPHA1
  • Fix Version/s: 1.0.0ALPHA2
  • Component/s: None
  • Labels:
    None
  • Environment:
    OSX, HEAD

Description

while doing a merge, I got some PHP errors.
Seems like these steps fix the problem:
1. Change line 1215 of UnitOfWork.php to
$id = $class->getIdentifierValue($document);
it was ValueS before

2. in function _cascadeMerge starting in line 1464 of UnitOfWork.php
change the inner calls from:
$this->_cascadeMerge($relatedDocument, $visited);
To:
$this->_cascadeMerge($relatedDocument, $managedCopy, $visited);

I didn't look deeper into ODM, just tried this to things and it seems to work now, so please excuse if it's bs ...

Activity

  • All
  • Comments
  • History
  • Activity
  • Source
Hide
Permalink
Jonathan H. Wage added a comment - 10/Jun/10 9:00 AM

Thanks for reporting the issue!

Show
Jonathan H. Wage added a comment - 10/Jun/10 9:00 AM Thanks for reporting the issue!

People

  • Assignee:
    Jonathan H. Wage
    Reporter:
    Florian Kubis
Vote (0)
Watch (0)

Dates

  • Created:
    10/Jun/10 8:51 AM
    Updated:
    10/Jun/10 9:00 AM
    Resolved:
    10/Jun/10 8:59 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Doctrine Project. Try JIRA - bug tracking software for your team.