public function getCacheName($associations = false)
    {
        $values = $this->cache ?: null;

        if ($associations) {
            $values = [$values];
            foreach ($this->associations()->getIterator() as $association) {
                if (method_exists($association->getTarget(), 'getCacheName') && $association->getTarget()->getCacheName()) {
                    $values[] = $association->getTarget()->getCacheName();
                }
            }

            $values = array_values(array_unique(array_filter($values)));
        }

        return $values;
    }
public function getCacheName($associations = false)
    {
        $values = $this->cache ?: null;

        if ($associations) {
            $values = [$values];
            foreach ($this->associations()->getIterator() as $association) {
                if (method_exists($association->getTarget(), 'getCacheName') && $association->getTarget()->getCacheName()) {
                    $values[] = $association->getTarget()->getCacheName();
                }
            }

            $values = array_values(array_unique(array_filter($values)));
        }

        return $values;
    }
public function getCacheName ( $ associations = false ) { $ values = $ this -> cache ? : null ; if ( $ associations ) { $ values = [ $ values ] ; foreach ( $ this -> associations ( ) -> getIterator ( ) as $ association ) { if ( method_exists ( $ association -> getTarget ( ) , 'getCacheName' ) && $ association -> getTarget ( ) -> getCacheName ( ) ) { $ values [ ] = $ association -> getTarget ( ) -> getCacheName ( ) ; } } $ values = array_values ( array_unique ( array_filter ( $ values ) ) ) ; } return $ values ; }
Gets the cache configuration name used by this table
@param bool $associations If `true`, it returns an array that contains
also the names of the associated tables
@return string|array|null
@since 2.26.0
@uses $cache
Gets the cache configuration name used by this table