Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | protected function joinTables() |
||
19 | { |
||
20 | /** @var ActiveRecord $model */ |
||
21 | $model = new $this->owner->modelClass(); |
||
22 | |||
23 | /** @var ActiveRecord $this->owner */ |
||
24 | $this->getQuery() |
||
25 | ->leftJoin($this->taxonomy->table, $this->taxonomy->table . '.object_id = ' . $model::tableName() . '.id') |
||
26 | ->leftJoin(TaxonomyTerms::tableName(), TaxonomyTerms::tableName() . '.id = ' . $this->taxonomy->table . '.term_id'); |
||
27 | } |
||
28 | |||
36 | } |