public function getObrazovaniyaDlyaZayavleniyaNaAttestaciyuRel() { return $this->hasMany(ObrazovanieDlyaZayavleniyaNaAttestaciyu::className(), ['organizaciya' => 'id'])->inverseOf('organizaciyaRel'); }
public function getObrazovanieDlyaZayavleniyaNaAttestaciyuRel() { return $this->hasOne(ObrazovanieDlyaZayavleniyaNaAttestaciyu::className(), ['id' => 'obrazovanie_istochnik'])->inverseOf('obrazovanieFizLicaRel'); }
public function getKursyRel() { return $this->hasMany(ObrazovanieDlyaZayavleniyaNaAttestaciyu::className(), ['zayavlenie_na_attestaciyu' => 'id'])->andOnCondition(['is not', 'obr_kursy.kurs_tip', null])->from(ObrazovanieDlyaZayavleniyaNaAttestaciyu::tableName() . ' obr_kursy')->inverseOf('zayavleniyaNaAttestaciyuKursyRel'); }