Skip to content

Commit

Permalink
Reset recordedEvents before triggering PostCommitEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Miertsch committed Jul 3, 2015
1 parent 96debf2 commit 34f0c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Prooph/EventStore/EventStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ public function commit()

$event = new PostCommitEvent(__FUNCTION__ . '.post', $this, $argv);

$this->getPersistenceEvents()->trigger($event);

$this->recordedEvents = array();

$this->getPersistenceEvents()->trigger($event);
}

/**
Expand Down

0 comments on commit 34f0c33

Please sign in to comment.