From 0d4f2d43e6d98f5552453e4879d36805b0f2cc91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mi=C5=A1o=20=C4=8Cerve=C5=88=C3=A1k?= Date: Sat, 23 Dec 2023 21:12:27 +0100 Subject: [PATCH] bypass refcache --- src/Selection/TypedSelectionsTrait.php | 5 +++++ 1 file changed, 5 insertions(+) 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 = []; + } }