Ejemplo n.º 1
0
 public function cleanDatabase()
 {
     try {
         AreaDefinition::deleteAll();
         UserReadAlerts::deleteAll();
         WeatherAlertCoordinates::deleteAll();
         WeatherAlertArea::deleteAll();
         WeatherAlert::deleteAll();
         NRESProperty::deleteAll();
     } catch (\Exception $e) {
     }
     return true;
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWeatherAlertCoordinates()
 {
     return $this->hasOne(WeatherAlertCoordinates::className(), ['WeatherAlert_id' => 'id']);
 }