- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBelongsToWithMixin (0.11 sec)
-
schema/relationship_test.go
Name: "Creator", Type: schema.BelongsTo, Schema: "User", FieldSchema: "User", References: []Reference{{"ID", "User", "CreatedBy", "User", "", false}}, }) } func TestBelongsToWithMixin(t *testing.T) { type Profile struct { gorm.Model Refer string Name string } type ProfileMixin struct { Profile Profile `gorm:"References:Refer"` ProfileRefer int }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Aug 18 11:44:52 UTC 2025 - 26.5K bytes - Viewed (0)