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