示例#1
0
 public function getComplainant()
 {
     return $this->hasOne(Complainant::className(), ['id' => 'complainant_id']);
 }
示例#2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getComplainants()
 {
     return $this->hasMany(Complainant::className(), ['sector_id' => 'id']);
 }