Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LookUpFieldByBindName (0.08 sec)

  1. 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)
  2. 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)
Back to top