Esempio n. 1
0
 public function init()
 {
     parent::init();
     $this->activeRelationMap = [\app\records\PodrazdelKursa::className() => PodrazdelKursa::className(), \app\records\Zanyatie::className() => Zanyatie::className()];
 }
Esempio n. 2
0
 public function getZanyatie_rel()
 {
     return $this->hasOne(Zanyatie::className(), ['id' => 'zanyatie']);
 }
Esempio n. 3
0
 /**
  * @return ActiveQuery
  */
 public function getZanyatiya_rel()
 {
     return $this->hasMany(Zanyatie::className(), ['id' => 'zanyatie'])->via('zanyatiya_chastej_tem_rel');
 }