Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TestCompositePrimaryKeysAssociations (0.14 seconds)

  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
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:27:38 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  2. schema/schema_test.go

    Nicola Murino <******@****.***> 1756349837 +0200
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Aug 28 02:57:17 GMT 2025
    - 13.3K bytes
    - Click Count (0)
Back to Top