1
0
mirror of synced 2025-01-17 22:11:41 +03:00

DDC-832 - Small adjustments in the patch

This commit is contained in:
Benjamin Eberlei 2010-10-31 11:11:15 +01:00
parent 4f71c3e6a3
commit 634aa0b291

View File

@ -1439,12 +1439,11 @@ class UnitOfWork implements PropertyChangedListener
}
if ($assoc2['isCascadeMerge']) {
$managedCol->initialize();
$managedCol->takeSnapshot();
if (!$managedCol->isEmpty()) {
$managedCol->unwrap()->clear();
$managedCol->setDirty(true);
if ($assoc2['isOwningSide'] && $assoc2['type'] == ClassMetadata::MANY_TO_MANY && $class->isChangeTrackingNotify()) {
$this->scheduleForDirtyCheck($managedCol);
$this->scheduleForDirtyCheck($managedCopy);
}
}
}