entc/gen: change receivers to static one (#4355)

* entc/gen: change receivers to static one

* entc/integration: codegen

* examples: codegen

* chore: fixed spacing
This commit is contained in:
Giau. Tran Minh
2025-03-19 15:10:47 +07:00
committed by GitHub
parent 088bfd75ad
commit 153dfa1782
906 changed files with 68984 additions and 69039 deletions

View File

@@ -208,9 +208,9 @@ func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context
{{- range $n := $.Nodes }}
{{ $n.Name }}: tableSchemas[{{ indexOf $all $n.TableSchema }}],
{{- range $e := $n.Edges }}
{{- if and $e.M2M (not $e.Inverse) (not $e.Through) }}
{{ $n.Name }}{{ $e.StructField }}: tableSchemas[{{ indexOf $all $e.TableSchema }}],
{{- end }}
{{- if and $e.M2M (not $e.Inverse) (not $e.Through) }}
{{ $n.Name }}{{ $e.StructField }}: tableSchemas[{{ indexOf $all $e.TableSchema }}],
{{- end }}
{{- end }}
{{- end }}
}