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