- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for AfterReplace (0.04 seconds)
-
tests/associations_has_one_test.go
} if account2.ID == 0 { t.Fatalf("account2's ID should be created") } user.Account = account2 CheckUser(t, user2, user) AssertAssociationCount(t, user2, "Account", 1, "AfterReplace") // Delete if err := DB.Model(&user2).Association("Account").Delete(&Account{}); err != nil { t.Fatalf("Error happened when delete account, got %v", err) }Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Jun 12 10:49:45 GMT 2024 - 7.1K bytes - Click Count (0) -
tests/associations_has_many_test.go
} if pet2.ID == 0 { t.Fatalf("pet2's ID should be created") } user.Pets = []*Pet{&pet2} CheckUser(t, user2, user) AssertAssociationCount(t, user2, "Pets", 1, "AfterReplace") // Delete if err := DB.Model(&user2).Association("Pets").Delete(&Pet{}); err != nil { t.Fatalf("Error happened when delete pet, got %v", err) }Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 04:33:27 GMT 2025 - 16.3K bytes - Click Count (0)