- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestClauseAssociationSetUpdateAndDelete (0.14 seconds)
-
tests/association_generics_test.go
} else if rows != 0 { t.Fatalf("expected 0 rows, got %d", rows) } } // OpDelete/OpUpdate should work for associations func TestClauseAssociationSetUpdateAndDelete(t *testing.T) { ctx := context.Background() user := User{Name: "TestClauseAssociationSetUpdateAndDelete", Age: 25} user.Pets = []*Pet{{Name: "before"}} if err := DB.Create(&user).Error; err != nil { t.Fatalf("create user: %v", err) }Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0)