Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCompositePrimaryKeysAssociations (0.14 sec)

  1. tests/multi_primary_keys_test.go

    	}
    
    	if DB.Model(&blog2).Association("LocaleTags").Count() != 0 {
    		t.Fatalf("EN Blog's tags should be cleared")
    	}
    }
    
    func TestCompositePrimaryKeysAssociations(t *testing.T) {
    	type Label struct {
    		BookID *uint  `gorm:"primarykey"`
    		Name   string `gorm:"primarykey"`
    		Value  string
    	}
    
    	type Book struct {
    		ID     int
    		Name   string
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 12.8K bytes
    - Viewed (0)
Back to top