Also skip entities scheduled for deletion when committing multiple entities
This commit is contained in:
parent
9016a5a854
commit
9807718100
@ -733,10 +733,10 @@ class UnitOfWork implements PropertyChangedListener
|
|||||||
continue;
|
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);
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user