/** * @return \yii\db\ActiveQuery */ public function getDoclads() { return $this->hasMany(Doclad::className(), ['doc_sec_id' => 'sec_id']); }
/** * Отношение к докладу * * @return \yii\db\ActiveQuery */ public function getDoclad() { return $this->hasOne(Doclad::className(), ['doc_id' => 'prs_doc_id']); }