Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ModelType (0.06 sec)

  1. schema/schema.go

    	}
    
    	modelType := reflect.ValueOf(dest).Type()
    	if modelType.Kind() == reflect.Ptr {
    		modelType = modelType.Elem()
    	}
    
    	if modelType.Kind() != reflect.Struct {
    		if modelType.Kind() == reflect.Interface {
    			modelType = reflect.Indirect(reflect.ValueOf(dest)).Elem().Type()
    		}
    
    		for modelType.Kind() == reflect.Slice || modelType.Kind() == reflect.Array || modelType.Kind() == reflect.Ptr {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 19 06:35:49 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  2. schema/relationship.go

    			})
    		}
    	}
    
    	joinTableFields = append(joinTableFields, reflect.StructField{
    		Name: cases.Title(language.Und, cases.NoLower).String(schema.Name) + field.Name,
    		Type: schema.ModelType,
    		Tag:  `gorm:"-"`,
    	})
    
    	if relation.JoinTable, err = Parse(reflect.New(reflect.StructOf(joinTableFields)).Interface(), schema.cacheStore,
    		schema.namer); err != nil {
    		schema.err = err
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 23.1K bytes
    - Viewed (1)
  3. schema/field.go

    		}
    	}
    
    	return field
    }
    
    // create valuer, setter when parse struct
    func (field *Field) setupValuerAndSetter(modelType reflect.Type) {
    	// Setup NewValuePool
    	field.setupNewValuePool()
    
    	// ValueOf returns field's value and if it is zero
    	fieldIndex := field.StructField.Index[0]
    	switch {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 32K bytes
    - Viewed (0)
Back to top