示例#1
0
 /**
  * Relation with Airport model.
  * 
  * @return \yii\db\ActiveQuery
  */
 public function getAirport()
 {
     return $this->hasMany(Airports::className(), ['user_id' => 'id']);
 }
示例#2
0
文件: Slots.php 项目: bth2008/rferu
 public function getAirport()
 {
     return $this->hasOne(Airports::className(), ['id' => 'airport_id']);
 }