- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for LookUpFieldByBindName (0.09 sec)
-
schema/schema.go
} return nil } // LookUpFieldByBindName looks for the closest field in the embedded struct. // // type Struct struct { // Embedded struct { // ID string // is selected by LookUpFieldByBindName([]string{"Embedded", "ID"}, "ID") // } // ID string // is selected by LookUpFieldByBindName([]string{"ID"}, "ID") // } func (schema *Schema) LookUpFieldByBindName(bindNames []string, name string) *Field {Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Oct 31 12:13:56 UTC 2025 - 13.1K bytes - Viewed (0) -
schema/relationship.go
strings.TrimSuffix(lookUpName, primaryField.Name)+"ID")) } for _, name := range lookUpNames { if f := foreignSchema.LookUpFieldByBindName(field.BindNames, name); f != nil { foreignFields = append(foreignFields, f) primaryFields = append(primaryFields, primaryField) continue primaryFieldLoop } }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 16 04:11:05 UTC 2025 - 23.1K bytes - Viewed (1)