/** * @return \yii\db\ActiveQuery */ public function getStateCode() { return $this->hasOne(ReceivedUsState::className(), ['code' => 'state_code']); }