mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
Ensure SchemaConfig is set in sqlQuery's context (#1203)
This commit is contained in:
committed by
Ariel Mashraki
parent
aeb1ccc571
commit
bdd8f2f624
@@ -130,6 +130,8 @@ func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context
|
||||
{{- $receiver := receiver $builder }}
|
||||
{{- if $.FeatureEnabled "sql/schemaconfig" }}
|
||||
t1.Schema({{ $receiver }}.schemaConfig.{{ $.Name }})
|
||||
ctx = internal.NewSchemaConfigContext(ctx, {{ $receiver }}.schemaConfig)
|
||||
selector.WithContext(ctx)
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user