Skip to content

Commit

Permalink
Ensure state is cleanup after empty commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yethee committed Mar 1, 2019
1 parent d91e0b3 commit 7f5f462
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Doctrine/ORM/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ public function commit($entity = null)
$this->dispatchOnFlushEvent();
$this->dispatchPostFlushEvent();

$this->postCommitCleanup($entity);

return; // Nothing to do.
}

Expand Down

0 comments on commit 7f5f462

Please sign in to comment.