Nette\Database\Table\Selection::emptyResultSet PHP Метод

emptyResultSet() защищенный Метод

protected emptyResultSet ( $clearCache = TRUE, $deleteRererencedCache = TRUE )
    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'] = [];
        }
    }

Usage Example

Пример #1
0
 protected function emptyResultSet($saveCache = TRUE, $deleteRererencedCache = TRUE)
 {
     parent::emptyResultSet($saveCache, FALSE);
 }