예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGolfer()
 {
     return $this->hasOne(Golfer::className(), ['id' => 'golfer_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getGolfers()
 {
     return $this->hasMany(Golfer::className(), ['facility_id' => 'id']);
 }