From 61c3ba1dd334c05dcfb384f6560159570904413b Mon Sep 17 00:00:00 2001 From: codeliner Date: Tue, 24 Jul 2018 23:46:55 +0200 Subject: [PATCH] Unset read models after deletion --- src/Projecting/ReadModelProxy.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Projecting/ReadModelProxy.php b/src/Projecting/ReadModelProxy.php index cab18be..2173809 100644 --- a/src/Projecting/ReadModelProxy.php +++ b/src/Projecting/ReadModelProxy.php @@ -84,5 +84,7 @@ public function delete(): void foreach ($this->readModels as $readModel) { $readModel->delete(); } + + $this->readModels = null; } }