Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setupReferences (0.17 sec)

  1. callbacks/associations.go

    			// Save Belongs To associations
    			for _, rel := range db.Statement.Schema.Relationships.BelongsTo {
    				if v, ok := selectColumns[rel.Name]; (ok && !v) || (!ok && restricted) {
    					continue
    				}
    
    				setupReferences := func(obj reflect.Value, elem reflect.Value) {
    					for _, ref := range rel.References {
    						if !ref.OwnPrimaryKey {
    							pv, _ := ref.PrimaryKey.ValueOf(db.Statement.Context, elem)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 03:06:13 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top