예제 #1
0
 public function getUmkRel()
 {
     return $this->hasMany(Umk::className(), ['id' => 'umk'])->viaTable('umk_podrazdela_kursa', ['podrazdel_kursa' => 'id'])->from(Umk::tableName() . ' umk_podrazdel');
 }
예제 #2
0
파일: Tema.php 프로젝트: tsyrya/mybriop
 public function getUmkRel()
 {
     return $this->hasMany(Umk::className(), ['id' => 'umk'])->viaTable('umk_temy', ['tema' => 'id'])->from(Umk::tableName() . ' umk_tema');
 }