- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for has_many (0.06 sec)
-
tests/association_generics_test.go
t.Fatalf("expected language row still exists, got %d", count) } } // Multi-owners: HasMany update and delete func TestClauseAssociationSetUpdateAndDeleteManyOwnersHasMany(t *testing.T) { ctx := context.Background() u1 := User{Name: "MultiOwners-HasMany-1", Age: 21} u1.Pets = []*Pet{{Name: "p1"}} u2 := User{Name: "MultiOwners-HasMany-2", Age: 22} u2.Pets = []*Pet{{Name: "p2"}} if err := DB.Create(&u1).Error; err != nil {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Sep 12 05:42:26 UTC 2025 - 37.9K bytes - Viewed (0) -
generics.go
} } assocDB := s.c.g.db.Session(&Session{NewDB: true, Context: ctx}).Model(assocModel).Where(op.Conditions) switch rel.Type { case schema.HasOne, schema.HasMany: assocDB = assocDB.Where("? IN (?)", foreignColumns, base.Select(ownerPKNames)) switch op.Type { case clause.OpUnlink: return assocDB.Updates(fkNil).Error case clause.OpDelete:
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 02 14:09:18 UTC 2025 - 25.9K bytes - Viewed (0) -
internal/grid/handlers.go
func (h *handlers) init() { h.subSingle = make(map[subHandlerID]SingleHandlerFn) h.subStateless = make(map[subHandlerID]*StatelessHandler) h.subStreams = make(map[subHandlerID]*StreamHandler) } func (h *handlers) hasAny(id HandlerID) bool { if !id.valid() { return false } return h.single[id] != nil || h.stateless[id] != nil || h.streams[id] != nil } func (h *handlers) hasSubhandler(id subHandlerID) bool {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 27.7K bytes - Viewed (0)