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