Skip to content

Commit abfcddf

Browse files
committed
fix instance forget original map
1 parent 0bcf46d commit abfcddf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Repository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public function forget(int $id): self
235235
$instance = $this->persisted[$id];
236236
unset($this->keys[$instance]);
237237
unset($this->persisted[$id]);
238+
unset($this->original[$id]);
238239
$this->flushCache();
239240
}
240241

0 commit comments

Comments
 (0)