/** * @return \yii\db\ActiveQuery */ public function getNewsGroup() { return $this->hasOne(NewsGroup::className(), ['id' => 'news_group_id']); }