Issue Details (XML | Word | Printable)

Key: MODM-13
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jonathan H. Wage
Reporter: Florian Kubis
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine MongoDB ODM

Problems with merge()

Created: 10/Jun/10 08:51 AM   Updated: 10/Jun/10 09:00 AM
Component/s: None
Affects Version/s: 1.0.0ALPHA1
Fix Version/s: 1.0.0ALPHA2

Environment: OSX, HEAD


 Description  « Hide
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 ...



 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Jonathan H. Wage added a comment - 10/Jun/10 09:00 AM
Thanks for reporting the issue!