- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSelfReferentialBelongsTo (0.68 sec)
-
schema/relationship_test.go
Name: "Profile", Type: schema.BelongsTo, Schema: "User", FieldSchema: "Profile", References: []Reference{{"Refer", "Profile", "ProfileID", "User", "", false}}, }) } func TestSelfReferentialBelongsTo(t *testing.T) { type User struct { ID int32 `gorm:"primaryKey"` Name string CreatorID *int32 Creator *User } checkStructRelation(t, &User{}, Relation{
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Apr 15 03:20:20 UTC 2024 - 25.5K bytes - Viewed (0)