Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for appendToRelations (0.2 sec)

  1. association.go

    	var (
    		reflectValue = association.DB.Statement.ReflectValue
    		assignBacks  []assignBack // assign association values back to arguments after save
    	)
    
    	appendToRelations := func(source, rv reflect.Value, clear bool) {
    		switch association.Relationship.Type {
    		case schema.HasOne, schema.BelongsTo:
    			switch rv.Kind() {
    			case reflect.Slice, reflect.Array:
    				if rv.Len() > 0 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
Back to top