DDC-1173 - Fix bug when calling UnitOfWork::clearEntityChangeSet() in listener
This commit is contained in:
parent
70d756d59c
commit
ddb647f39f
@ -759,7 +759,9 @@ class UnitOfWork implements PropertyChangedListener
|
||||
);
|
||||
}
|
||||
|
||||
$persister->update($entity);
|
||||
if ($this->entityChangeSets[$oid]) {
|
||||
$persister->update($entity);
|
||||
}
|
||||
unset($this->entityUpdates[$oid]);
|
||||
|
||||
if ($hasPostUpdateLifecycleCallbacks) {
|
||||
@ -2263,7 +2265,7 @@ class UnitOfWork implements PropertyChangedListener
|
||||
*/
|
||||
public function clearEntityChangeSet($oid)
|
||||
{
|
||||
unset($this->entityChangeSets[$oid]);
|
||||
$this->entityChangeSets[$oid] = array();
|
||||
}
|
||||
|
||||
/* PropertyChangedListener implementation */
|
||||
|
Loading…
x
Reference in New Issue
Block a user