Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AssocM2MAppendMapGeneric (0.34 sec)

  1. tests/association_generics_test.go

    }
    
    // Many2Many append with map using Association API (regression for map support)
    func TestAssociationMany2ManyAppendMap_GenericFile(t *testing.T) {
    	user := User{Name: "AssocM2MAppendMapGeneric", Age: 28}
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("create user: %v", err)
    	}
    
    	if err := DB.Model(&user).Association("Languages").Append(map[string]interface{}{
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 05:42:26 UTC 2025
    - 37.9K bytes
    - Viewed (0)
Back to top