public function getSearchTags(EntityDefinition $definition, Criteria $criteria): array
    {
        $tags = [$definition->getEntityName() . '.id'];

        foreach ($criteria->getSearchQueryFields() as $accessor) {
            foreach ($this->getFieldsOfAccessor($definition, $accessor) as $association) {
                $tags[] = $association;
            }
        }

        return $tags;
    }
public function getSearchTags(EntityDefinition $definition, Criteria $criteria): array
    {
        $tags = [$definition->getEntityName() . '.id'];

        foreach ($criteria->getSearchQueryFields() as $accessor) {
            foreach ($this->getFieldsOfAccessor($definition, $accessor) as $association) {
                $tags[] = $association;
            }
        }

        return $tags;
    }
public function getSearchTags ( EntityDefinition $ definition , Criteria $ criteria ) : array { $ tags = [ $ definition -> getEntityName ( ) . '.id' ] ; foreach ( $ criteria -> getSearchQueryFields ( ) as $ accessor ) { foreach ( $ this -> getFieldsOfAccessor ( $ definition , $ accessor ) as $ association ) { $ tags [ ] = $ association ; } } return $ tags ; }
Calculates all relevant cache tags for a search requests. Considers all accessed fields of the criteria.
Calculates all relevant cache tags for a search requests . Considers all accessed fields of the criteria .