Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIDstationTo()
 {
     return $this->hasOne(Station::className(), ['IDstation' => 'IDstationTo']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStations()
 {
     return $this->hasMany(Station::className(), ['IDcity' => 'IDcity']);
 }