- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AssociationAssignments (0.13 sec)
-
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) }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 02 14:09:18 UTC 2025 - 33.7K bytes - Viewed (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, } }Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 02 14:09:18 UTC 2025 - 25.9K bytes - Viewed (0)