public function cleanReferencedResultsCache($table = null, $viaColumn = null)
    {
        if ($table === null or $viaColumn === null) {
            $this->referenced = [];
        } else {
            foreach ($this->referenced as $key => $value) {
                if (preg_match("~^$table\\($viaColumn\\)(#.*)?$~", $key)) {
                    unset($this->referenced[$key]);
                }
            }
        }
    }
public function cleanReferencedResultsCache($table = null, $viaColumn = null)
    {
        if ($table === null or $viaColumn === null) {
            $this->referenced = [];
        } else {
            foreach ($this->referenced as $key => $value) {
                if (preg_match("~^$table\\($viaColumn\\)(#.*)?$~", $key)) {
                    unset($this->referenced[$key]);
                }
            }
        }
    }
public function cleanReferencedResultsCache ( $ table = null , $ viaColumn = null ) { if ( $ table === null or $ viaColumn === null ) { $ this -> referenced = [ ] ; } else { foreach ( $ this -> referenced as $ key => $ value ) { if ( preg_match ( "~^$table\\($viaColumn\\)(#.*)?$~" , $ key ) ) { unset ( $ this -> referenced [ $ key ] ) ; } } } }
Cleans in-memory cache with referenced results

@param string|null $table
@param string|null $viaColumn
Cleans in - memory cache with referenced results