@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use yii\db\Migration; |
| 14 | 14 | use yii\db\Query; |
| 15 | 15 | use yii\db\Schema; |
| 16 | -use yii\helpers\ArrayHelper; |
|
| 17 | 16 | |
| 18 | 17 | class PropertyTerm extends BaseTerm { |
| 19 | 18 | |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use nkostadinov\taxonomy\models\TaxonomyDefSearch; |
| 9 | 9 | use yii\base\InvalidConfigException; |
| 10 | 10 | use yii\data\ActiveDataProvider; |
| 11 | -use yii\helpers\Url; |
|
| 12 | 11 | use yii\web\Controller; |
| 13 | 12 | use yii\web\NotFoundHttpException; |
| 14 | 13 | use yii\filters\VerbFilter; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace nkostadinov\taxonomy\models; |
| 4 | 4 | |
| 5 | -use Yii; |
|
| 6 | 5 | use yii\base\Model; |
| 7 | 6 | use yii\data\ActiveDataProvider; |
| 8 | 7 | use nkostadinov\taxonomy\models\TaxonomyDef; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * User: Phreak |
|
| 3 | + * User: Phreak |
|
| 4 | 4 | * Date: 13.02.2015 |
| 5 | 5 | * Time: 09:31 ч. |
| 6 | 6 | */ |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | if ($object_id) { |
| 23 | 23 | $query->innerJoin($this->table, $this->table . '.term_id = taxonomy_terms.id') |
| 24 | - ->onCondition("$this->table.object_id = $object_id"); |
|
| 24 | + ->onCondition("$this->table.object_id = $object_id"); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | return ArrayHelper::getColumn($query->all(), 'term'); |