entc/gen: fix uuid fks scanning (#382)

Fixes #363
This commit is contained in:
Ariel Mashraki
2020-03-07 22:11:25 +02:00
committed by GitHub
parent 7114543a08
commit 2a7183eb82
13 changed files with 779 additions and 20 deletions

View File

@@ -103,7 +103,7 @@ func ({{ $receiver }} *{{ $.Name }}) assignValues(values ...interface{}) error {
{{- end }}
{{- else }}
} else if value != nil {
{{ $ret }}.{{ $field }} = *value
{{ $ret }}.{{ $field }} = {{ if not $f.Nillable }}*{{ end }}value
{{- end }}
}
{{- end }}