// ConfigureQorMeta configure select many meta
ConfigureQorMeta configure select many meta
// ConfigureQorMeta configure select many meta
func (selectManyConfig *SelectManyConfig) ConfigureQorMeta(metaor resource.Metaor) {
	if meta, ok := metaor.(*Meta); ok {
		selectManyConfig.SelectOneConfig.Collection = selectManyConfig.Collection
		selectManyConfig.SelectOneConfig.SelectMode = selectManyConfig.SelectMode
		selectManyConfig.SelectOneConfig.DefaultCreating = selectManyConfig.DefaultCreating
		selectManyConfig.SelectOneConfig.Placeholder = selectManyConfig.Placeholder
		selectManyConfig.SelectOneConfig.RemoteDataResource = selectManyConfig.RemoteDataResource
		selectManyConfig.SelectOneConfig.ConfigureQorMeta(meta)
		selectManyConfig.RemoteDataResource = selectManyConfig.SelectOneConfig.RemoteDataResource
		selectManyConfig.DefaultCreating = selectManyConfig.SelectOneConfig.DefaultCreating
		meta.Type = "select_many"
		if meta.FormattedValuer == nil {
			meta.SetFormattedValuer(func(record interface{}, context *qor.Context) interface{} {
				reflectValues := reflect.Indirect(reflect.ValueOf(meta.GetValuer()(record, context)))
				var results []string
				if reflectValues.IsValid() {
					for i := 0; i < reflectValues.Len(); i++ {
						results = append(results, utils.Stringify(reflectValues.Index(i).Interface()))
					}
				}
				return results
			})
		}
	}
}
func ( selectManyConfig * SelectManyConfig ) ConfigureQorMeta ( metaor resource . Metaor ) { if meta , ok := metaor . ( * Meta ) ; ok { selectManyConfig . SelectOneConfig . Collection = selectManyConfig . Collection selectManyConfig . SelectOneConfig . SelectMode = selectManyConfig . SelectMode selectManyConfig . SelectOneConfig . DefaultCreating = selectManyConfig . DefaultCreating selectManyConfig . SelectOneConfig . Placeholder = selectManyConfig . Placeholder selectManyConfig . SelectOneConfig . RemoteDataResource = selectManyConfig . RemoteDataResource selectManyConfig . SelectOneConfig . ConfigureQorMeta ( meta ) selectManyConfig . RemoteDataResource = selectManyConfig . SelectOneConfig . RemoteDataResource selectManyConfig . DefaultCreating = selectManyConfig . SelectOneConfig . DefaultCreating meta . Type = " " if meta . FormattedValuer == nil { meta . SetFormattedValuer ( func ( record interface { } , context * qor . Context ) interface { } { reflectValues := reflect . Indirect ( reflect . ValueOf ( meta . GetValuer ( ) ( record , context ) ) ) var results [ ] string if reflectValues . IsValid ( ) { for i := 0 ; i < reflectValues . Len ( ) ; i ++ { results = append ( results , utils . Stringify ( reflectValues . Index ( i ) . Interface ( ) ) ) } } return results } ) } } }
ConfigureQorMeta configure select many meta
ConfigureQorMeta configure select many meta
// Set FormattedValuer