Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMultipleMany2Many (0.23 sec)

  1. schema/relationship_test.go

    				{"Locale", "Blog", "BlogLocale", "locale_blog_tags", "", true},
    				{"ID", "Tag", "TagID", "locale_blog_tags", "", false},
    			},
    		},
    	)
    }
    
    func TestMultipleMany2Many(t *testing.T) {
    	type Thing struct {
    		ID int
    	}
    
    	type Person struct {
    		ID       int
    		Likes    []Thing `gorm:"many2many:likes"`
    		Dislikes []Thing `gorm:"many2many:dislikes"`
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top