1
0
mirror of synced 2025-02-06 15:29:26 +03:00

don't compute changeset for entities that are going to be deleted

This commit is contained in:
flack 2013-11-12 00:11:50 +01:00
parent 0a31ecb283
commit 9016a5a854

View File

@ -445,10 +445,10 @@ class UnitOfWork implements PropertyChangedListener
return; return;
} }
// Only MANAGED entities that are NOT SCHEDULED FOR INSERTION are processed here. // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
$oid = spl_object_hash($entity); $oid = spl_object_hash($entity);
if ( ! isset($this->entityInsertions[$oid]) && isset($this->entityStates[$oid])) { if ( ! isset($this->entityInsertions[$oid]) && ! isset($this->entityDeletions[$oid]) && isset($this->entityStates[$oid])) {
$this->computeChangeSet($class, $entity); $this->computeChangeSet($class, $entity);
} }
} }