/** * @return ActiveQuery */ public function getPodrazdel_rel() { return $this->hasOne(PodrazdelKursa::className(), ['id' => 'podrazdel'])->inverseOf('temy_rel'); }
public function init() { parent::init(); $this->activeRelationMap = [\app\records\PodrazdelKursa::className() => PodrazdelKursa::className(), \app\records\Zanyatie::className() => Zanyatie::className()]; }
/** * @return ActiveQuery */ public function getPodrazdely_rel() { return $this->hasMany(PodrazdelKursa::className(), ['razdel' => 'id'])->inverseOf('razdel_rel'); }