- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBelongsToAssociationForSlice (0.14 sec)
-
tests/associations_belongs_to_test.go
if err := DB.Create(&user).Error; err == nil { tidbSkip(t, "not support the foreign key feature") t.Errorf("should have gotten foreign key violation error") } } func TestBelongsToAssociationForSlice(t *testing.T) { users := []User{ *GetUser("slice-belongs-to-1", Config{Company: true, Manager: true}), *GetUser("slice-belongs-to-2", Config{Company: true, Manager: false}),
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 9.3K bytes - Viewed (0)