creocoder\taggable\TaggableQueryBehavior::allTagValues PHP Method

allTagValues() public method

Gets entities by all tags.
public allTagValues ( string | string[] $values, string | null $attribute = null ) : ActiveQuery
$values string | string[]
$attribute string | null
return yii\db\ActiveQuery the owner
    public function allTagValues($values, $attribute = null)
    {
        $model = new $this->owner->modelClass();
        return $this->anyTagValues($values, $attribute)->andHaving(new Expression('COUNT(*) = ' . count($model->filterTagValues($values))));
    }