Skip to content

Commit

Permalink
bypass refcache
Browse files Browse the repository at this point in the history
  • Loading branch information
cevro committed Dec 23, 2023
1 parent 81a114d commit 0d4f2d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Selection/TypedSelectionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
}

0 comments on commit 0d4f2d4

Please sign in to comment.