- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for unmatched (0.4 sec)
-
tests/associations_belongs_to_test.go
AssertAssociationCount(t, users, "Manager", 3, "After Append") if err := DB.Model(&users).Association("Manager").Append( GetUser("manager-slice-belongs-to-test-1", Config{}), ).Error; err == nil { t.Errorf("unmatched length when update user's manager") } // Replace -> same as append // Delete if err := DB.Model(&users).Association("Company").Delete(&users[0].Company); err != nil {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 9.3K bytes - Viewed (0) -
tests/scan_test.go
t.Errorf("Failed, expected %v, got %v", address1.Name, info.Address.Name) } } } if !personMatched { t.Errorf("Failed, no person matched") } if !addressMatched { t.Errorf("Failed, no address matched") } personDupField := Person{ID: person1.ID} if err := DB.Select("people.id, people.*"). First(&personDupField).Error; err != nil {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat May 28 14:18:07 GMT 2022 - 8.2K bytes - Viewed (0) -
schema/relationship.go
matched := true for idx, ref := range r.References { if !(rel.References[idx].PrimaryKey == ref.PrimaryKey && rel.References[idx].ForeignKey == ref.ForeignKey && rel.References[idx].PrimaryValue == ref.PrimaryValue) { matched = false } } if matched { return nil } } } } var (
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 22.4K bytes - Viewed (0)