Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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 ... ![]()
Thanks for reporting the issue!