1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Fixed nesting recursion error in some situations. Complement to DDC-1276.

This commit is contained in:
Guilherme Blanco 2011-12-09 10:59:53 -05:00
parent 0febf06114
commit 954b5077e4

View File

@ -1735,7 +1735,7 @@ class UnitOfWork implements PropertyChangedListener
$managedCol->initialize();
// clear and set dirty a managed collection if its not also the same collection to merge from.
if (!$managedCol->isEmpty() && $managedCol != $mergeCol) {
if (!$managedCol->isEmpty() && $managedCol !== $mergeCol) {
$managedCol->unwrap()->clear();
$managedCol->setDirty(true);