Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/associations_has_many_test.go

    		t.Errorf("failed to find contents, got error: %v", err)
    	}
    	if len(contents) != 0 {
    		t.Errorf("expected %d contents, got %d", 0, len(contents))
    	}
    }
    
    func TestHasManyAssociationReplaceWithStructValue(t *testing.T) {
    	user := User{Name: "HasManyAssociationReplaceWithStructValue", Languages: []Language{{Name: "EN", Code: "en"}}}
    
    	if err := DB.Create(&user).Error; err != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 04:33:27 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top