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