/** * @return void */ protected function ensureActiveParams() { if ($this->caching && $this->cacheExists()) { return; } static::$data[$this->cacheKey] = ArrayHelper::index(ActiveParam::find()->category($this->uniqueId)->orderBy('name')->asArray()->all(), 'name'); Yii::info('Active params for component ' . get_class($this->owner) . " '{$this->uniqueId}' selected from database", __METHOD__); if ($this->caching) { $this->updateCache(); } }
public function down() { $this->dropTable(ActiveParam::tableName()); }