DDC-1173 - Fix bug when calling UnitOfWork::clearEntityChangeSet() in listener
This commit is contained in:
parent
70d756d59c
commit
ddb647f39f
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue