- Sort Score
- Result 10 results
- Languages All
Results 21 - 23 of 23 for ID (0.11 sec)
-
tests/associations_many2many_test.go
AssertEqual(t, nil, err) var findUser1 User err = DB.Preload("Languages").Where("id = ?", user1.ID).First(&findUser1).Error AssertEqual(t, nil, err) AssertEqual(t, user1, findUser1) var findUser2 User err = DB.Preload("Languages").Where("id = ?", user2.ID).First(&findUser2).Error AssertEqual(t, nil, err) AssertEqual(t, user2, findUser2) }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Jun 10 13:05:19 GMT 2023 - 13.2K bytes - Viewed (0) -
schema/schema.go
} // 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 { if len(bindNames) == 0 { return nil }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Oct 10 06:50:29 GMT 2023 - 13.7K bytes - Viewed (0) -
schema/relationship.go
if len(primaryFields) == 1 { lookUpNames = append(lookUpNames, strings.TrimSuffix(lookUpName, primaryField.Name)+"ID", strings.TrimSuffix(lookUpName, primaryField.Name)+"Id", schema.namer.ColumnName(foreignSchema.Table, strings.TrimSuffix(lookUpName, primaryField.Name)+"ID")) } for _, name := range lookUpNames { if f := foreignSchema.LookUpFieldByBindName(field.BindNames, name); f != nil {
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)