public function getParent() { return $this->hasOne(CategoryRecord::className(), ['id' => 'categoryId'])->lang(); }
public function getCategory() { return $this->hasOne(CategoryRecord::className(), ['id' => 'categoryId'])->andWhere(['lang' => Yii::$app->language]); }