diff --git a/core/ormlinkset.class.inc.php b/core/ormlinkset.class.inc.php index af31e69f2..e44060dce 100644 --- a/core/ormlinkset.class.inc.php +++ b/core/ormlinkset.class.inc.php @@ -179,7 +179,7 @@ class ormLinkSet implements iDBObjectSetIterator, Iterator, SeekableIterator assert($oLink instanceof $this->sClass); $iObjectId = $oLink->GetKey(); - if (array_key_exists($iObjectId, $this->aPreserved)) { + if (array_key_exists($iObjectId, $this->aPreserved) && !$oLink->Equals(MetaModel::GetObject(get_class($oLink), $iObjectId, true))) { unset($this->aPreserved[$iObjectId]); $this->aModified[$iObjectId] = $oLink; $this->bHasDelta = true;