- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for AssociationAssignments (0.09 seconds)
-
tests/generics_test.go
// Verify it implements AssociationAssigner interface assocAssignments := assoc.AssociationAssignments() if len(assocAssignments) != 1 { t.Errorf("Association.AssociationAssignments() should return slice with one element, got %v", assocAssignments) } if assocAssignments[0].Association != "Orders" { t.Errorf("Association.AssociationAssignments()[0].Association should be 'Orders', got %v", assocAssignments[0].Association) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Dec 30 08:11:14 GMT 2025 - 34.9K bytes - Click Count (0) -
generics.go
) for _, item := range items { // Check if it's an AssociationAssigner if assocAssigner, ok := item.(clause.AssociationAssigner); ok { assocOps = append(assocOps, assocAssigner.AssociationAssignments()...) } else { assigns = append(assigns, item.Assignments()...) } } return setCreateOrUpdateG[T]{ c: c, assigns: assigns, assocOps: assocOps, } }Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:34:24 GMT 2026 - 26K bytes - Click Count (0)