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