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