Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for assoc_m2m_append_map (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/associations_test.go

    	}
    
    	AssertEqual(t, result, user)
    }
    
    // Ensure Association.Append/Replace supports map for many2many
    func TestAssociationMany2ManyAppendMap(t *testing.T) {
    	user := *GetUser("assoc_m2m_append_map", Config{})
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("create user: %v", err)
    	}
    
    	// Append single map
    	if err := DB.Model(&user).Association("Languages").Append(map[string]interface{}{
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Sep 12 04:33:27 GMT 2025
    - 13.3K bytes
    - Click Count (0)
Back to Top