示例#1
0
文件: Tema.php 项目: tsyrya/mybriop
 /**
  * @return ActiveQuery
  */
 public function getPodrazdel_rel()
 {
     return $this->hasOne(PodrazdelKursa::className(), ['id' => 'podrazdel'])->inverseOf('temy_rel');
 }
示例#2
0
 public function init()
 {
     parent::init();
     $this->activeRelationMap = [\app\records\PodrazdelKursa::className() => PodrazdelKursa::className(), \app\records\Zanyatie::className() => Zanyatie::className()];
 }
示例#3
0
 /**
  * @return ActiveQuery
  */
 public function getPodrazdely_rel()
 {
     return $this->hasMany(PodrazdelKursa::className(), ['razdel' => 'id'])->inverseOf('razdel_rel');
 }