Skip to content

Demonstrate gormg en bug where struct/slice fields are not relations but json fields#842

Open
Idane wants to merge 1 commit intogo-gorm:masterfrom
Idane:master
Open

Demonstrate gormg en bug where struct/slice fields are not relations but json fields#842
Idane wants to merge 1 commit intogo-gorm:masterfrom
Idane:master

Conversation

@Idane
Copy link

@Idane Idane commented Feb 3, 2026

Explain your user case and expected results

In temp/models.go, JsonSlice and JsonStruct appear like this:

	JsonSlice:  field.Slice[string]{}.WithName("JsonSlice"),
	JsonStruct: field.Struct[models.ExampleStruct]{}.WithName("JsonStruct"),

They should be with their DB names:

	JsonSlice:  field.Slice[string]{}.WithName("json_slice"),
	JsonStruct: field.Struct[models.ExampleStruct]{}.WithName("json_struct"),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant