/** * @return ActiveQuery */ public function getRazdely_kursa_rel() { return $this->hasMany(RazdelKursa::className(), ['kurs' => 'id'])->inverseOf('kurs_rel'); }
/** * @return ActiveQuery */ public function getRazdel_rel() { return $this->hasOne(RazdelKursa::className(), ['id' => 'razdel'])->inverseOf('podrazdely_rel'); }