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