diff --git a/src/Selection/TypedSelectionsTrait.php b/src/Selection/TypedSelectionsTrait.php index be2a1e8..4926241 100644 --- a/src/Selection/TypedSelectionsTrait.php +++ b/src/Selection/TypedSelectionsTrait.php @@ -51,4 +51,9 @@ protected function createRow(array $row): Model $className = $this->mapper->getDefinition($this->name)['model']; return new $className($row, $this); } + + public function unsetRefCache(): void + { + $this->refCache = []; + } }