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