lib/components/db/behaviors/QueryTaxonomy.php
public function filterByTaxonomy($value, $params = [])
    {
        $queryAlias = isset($params['queryAlias']) ? $params['queryAlias'] : $this->owner->primaryAlias;
        $queryPk = isset($params['queryPk']) ? $params['queryPk'] : $this->owner->primaryTablePk;
        $taxonomyAlias = isset($params['taxonomyAlias']) ? $params['taxonomyAlias'] : 'tax';

        $pivotTableClass = Yii::$app->classes[$this->viaModelClass];
        $pivotTable = $pivotTableClass::tableName();
        $taxonomy = static::parseTaxonomyValue($value);
        $params = [];
        $this->owner->andWhere(['{{' . $taxonomyAlias . '}}.[[' . $this->taxonomyKey . ']]' => $taxonomy]);
        $conditions = ['and', '{{' . $queryAlias . '}}.[[' . $queryPk . ']]={{' . $taxonomyAlias . '}}.[[' . $this->relationKey . ']]'];
        $this->owner->leftJoin([$taxonomyAlias => $pivotTable], $conditions, $params);
    }
public function filterByTaxonomy($value, $params = [])
    {
        $queryAlias = isset($params['queryAlias']) ? $params['queryAlias'] : $this->owner->primaryAlias;
        $queryPk = isset($params['queryPk']) ? $params['queryPk'] : $this->owner->primaryTablePk;
        $taxonomyAlias = isset($params['taxonomyAlias']) ? $params['taxonomyAlias'] : 'tax';

        $pivotTableClass = Yii::$app->classes[$this->viaModelClass];
        $pivotTable = $pivotTableClass::tableName();
        $taxonomy = static::parseTaxonomyValue($value);
        $params = [];
        $this->owner->andWhere(['{{' . $taxonomyAlias . '}}.[[' . $this->taxonomyKey . ']]' => $taxonomy]);
        $conditions = ['and', '{{' . $queryAlias . '}}.[[' . $queryPk . ']]={{' . $taxonomyAlias . '}}.[[' . $this->relationKey . ']]'];
        $this->owner->leftJoin([$taxonomyAlias => $pivotTable], $conditions, $params);
    }
public function filterByTaxonomy ( $ value , $ params = [ ] ) { $ queryAlias = isset ( $ params [ 'queryAlias' ] ) ? $ params [ 'queryAlias' ] : $ this -> owner -> primaryAlias ; $ queryPk = isset ( $ params [ 'queryPk' ] ) ? $ params [ 'queryPk' ] : $ this -> owner -> primaryTablePk ; $ taxonomyAlias = isset ( $ params [ 'taxonomyAlias' ] ) ? $ params [ 'taxonomyAlias' ] : 'tax' ; $ pivotTableClass = Yii :: $ app -> classes [ $ this -> viaModelClass ] ; $ pivotTable = $ pivotTableClass :: tableName ( ) ; $ taxonomy = static :: parseTaxonomyValue ( $ value ) ; $ params = [ ] ; $ this -> owner -> andWhere ( [ '{{' . $ taxonomyAlias . '}}.[[' . $ this -> taxonomyKey . ']]' => $ taxonomy ] ) ; $ conditions = [ 'and' , '{{' . $ queryAlias . '}}.[[' . $ queryPk . ']]={{' . $ taxonomyAlias . '}}.[[' . $ this -> relationKey . ']]' ] ; $ this -> owner -> leftJoin ( [ $ taxonomyAlias => $ pivotTable ] , $ conditions , $ params ) ; }
[[@doctodo method_description:filterByTaxonomy]].

@param [[@doctodo param_type:value]] $value  [[@doctodo param_description:value]]
@param array                         $params [[@doctodo param_description:params]] [optional]
[[ @doctodo method_description : filterByTaxonomy ]] .