Exemplo n.º 1
0
 public function getUmkRel()
 {
     return $this->hasMany(Umk::className(), ['id' => 'umk'])->viaTable('umk_podrazdela_kursa', ['podrazdel_kursa' => 'id'])->from(Umk::tableName() . ' umk_podrazdel');
 }
Exemplo n.º 2
0
 public function getUmkRel()
 {
     return $this->hasMany(Umk::className(), ['id' => 'umk'])->viaTable('umk_temy', ['tema' => 'id'])->from(Umk::tableName() . ' umk_tema');
 }