public function getCharact() { return $this->hasMany(CharactAttr::className(), ['categoryId' => 'id'])->andWhere(['langauge' => \Yii::$app->language]); }