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