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

Also skip entities scheduled for deletion when committing multiple entities

This commit is contained in:
flack 2013-11-17 11:31:21 +01:00
parent 9016a5a854
commit 9807718100

View File

@ -733,10 +733,10 @@ class UnitOfWork implements PropertyChangedListener
continue;
}
// 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);
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);
}
}