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