Skip to content

Commit

Permalink
Unset read models after deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Jul 24, 2018
1 parent 9480bae commit 61c3ba1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Projecting/ReadModelProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,7 @@ public function delete(): void
foreach ($this->readModels as $readModel) {
$readModel->delete();
}

$this->readModels = null;
}
}

0 comments on commit 61c3ba1

Please sign in to comment.