/** * @return \yii\db\ActiveQuery */ public function getWeatherAlertAreas() { return $this->hasMany(WeatherAlertArea::className(), ['WeatherAlert_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getWeatherAlertArea() { return $this->hasOne(WeatherAlertArea::className(), ['id' => 'WeatherAlertArea_id']); }