예제 #1
0
파일: Area.php 프로젝트: gpis88ce/Gpis88ce
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStations()
 {
     return $this->hasMany(Station::className(), ['area_id' => 'id']);
 }
예제 #2
0
 public function getStationCode()
 {
     return $this->hasOne(Station::className(), ['code' => 'station_code']);
 }