/** * @return \yii\db\ActiveQuery */ public function getSector() { return $this->hasOne(CsSectors::className(), ['id' => 'sector_id']); }