/** * @return \yii\db\ActiveQuery */ public function getArticleType() { return $this->hasOne(ArticleType::className(), ['type_id' => 'article_type']); }