/** * @return \yii\db\ActiveQuery */ public function getIDroute() { return $this->hasOne(Route::className(), ['IDroute' => 'IDroute']); }
/** * @return \yii\db\ActiveQuery */ public function getRoutes() { return $this->hasMany(Route::className(), ['IDstationTo' => 'IDstation']); }