public function allCategoryValues($values, $attribute = null)
    {
        $model = new $this->owner->modelClass();

        return $this->anyCategoryValues($values, $attribute)->andHaving(new Expression('COUNT(*) = ' . count($model->filterCategoryValues($values))));
    }
public function allCategoryValues($values, $attribute = null)
    {
        $model = new $this->owner->modelClass();

        return $this->anyCategoryValues($values, $attribute)->andHaving(new Expression('COUNT(*) = ' . count($model->filterCategoryValues($values))));
    }
public function allCategoryValues ( $ values , $ attribute = null ) { $ model = new $ this -> owner -> modelClass ( ) ; return $ this -> anyCategoryValues ( $ values , $ attribute ) -> andHaving ( new Expression ( 'COUNT(*) = ' . count ( $ model -> filterCategoryValues ( $ values ) ) ) ) ; }
Gets entities by all categories.
@param string|string[] $values
@param string|null $attribute
@return \yii\db\ActiveQuery the owner
Gets entities by all categories .