Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMany2ManyWithMultiPrimaryKeys (0.16 sec)

  1. schema/relationship_test.go

    		References: []Reference{
    			{"ID", "User", "UserReferID", "user_profile", "", true},
    			{"ID", "Profile", "ProfileRefer", "user_profile", "", false},
    		},
    	})
    }
    
    func TestMany2ManyWithMultiPrimaryKeys(t *testing.T) {
    	type Tag struct {
    		ID     uint   `gorm:"primary_key"`
    		Locale string `gorm:"primary_key"`
    		Value  string
    	}
    
    	type Blog struct {
    		ID         uint   `gorm:"primary_key"`
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top