public function getVolunteers()
 {
     return $this->hasOne(Volunteer::className(), ["id" => "reference_id"]);
 }
Exemple #2
0
 public function getVolunteers()
 {
     return $this->hasMany(Volunteer::className(), ['id' => "reference_id"])->viaTable('edge_volunteer', ['course_id' => 'course_id']);
 }