Skip to content

Commit 37cc8ba

Browse files
MartinMystikJonasdg
authored andcommitted
Selection: Fixed accidental deletion of referenced cached rows when emptyResultSet is called (#187)(#207)
1 parent 376e502 commit 37cc8ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Database/Table/Selection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,8 @@ protected function emptyResultSet(bool $clearCache = true, bool $deleteRererence
596596
$this->cache->setGeneralCacheKey(null);
597597
}
598598

599-
$this->rows = null;
599+
$null = null;
600+
$this->rows = &$null;
600601
$this->cache->setSpecificCacheKey(null);
601602
$this->refCache->clearReferencingPrototype();
602603
if ($deleteRererencedCache) {

0 commit comments

Comments
 (0)