protected function emptyResultSet($clearCache = TRUE, $deleteRererencedCache = TRUE)
{
if ($this->rows !== NULL && $clearCache) {
$this->saveCacheState();
}
if ($clearCache) {
// not null in case of missing some column
$this->previousAccessedColumns = NULL;
$this->generalCacheKey = NULL;
}
$this->rows = NULL;
$this->specificCacheKey = NULL;
$this->refCache['referencingPrototype'] = [];
if ($deleteRererencedCache) {
$this->refCache['referenced'] = [];
}
}