@@ -19,6 +19,9 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | class Migrator extends \yii\console\controllers\MigrateController |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @param string $id |
|
| 24 | + */ |
|
| 22 | 25 | public function __construct($id, $module, $config = []) |
| 23 | 26 | { |
| 24 | 27 | parent::__construct($id, $module, $config); // TODO: Change the autogenerated stub |
@@ -64,7 +67,7 @@ discard block |
||
| 64 | 67 | |
| 65 | 68 | /** |
| 66 | 69 | * Lists all TaxonomyDef models. |
| 67 | - * @return mixed |
|
| 70 | + * @return string |
|
| 68 | 71 | * @throws InvalidConfigException |
| 69 | 72 | */ |
| 70 | 73 | public function actionIndex() |
@@ -84,7 +87,7 @@ discard block |
||
| 84 | 87 | /** |
| 85 | 88 | * Displays a single TaxonomyDef model. |
| 86 | 89 | * @param integer $id |
| 87 | - * @return mixed |
|
| 90 | + * @return string |
|
| 88 | 91 | */ |
| 89 | 92 | public function actionView($id) |
| 90 | 93 | { |
@@ -157,7 +160,7 @@ discard block |
||
| 157 | 160 | * Deletes an existing TaxonomyDef model. |
| 158 | 161 | * If deletion is successful, the browser will be redirected to the 'index' page. |
| 159 | 162 | * @param integer $id |
| 160 | - * @return mixed |
|
| 163 | + * @return \yii\web\Response |
|
| 161 | 164 | */ |
| 162 | 165 | public function actionDelete($id) |
| 163 | 166 | { |
@@ -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'); |