Merge 2ff17d65e42570f78ea87edc43e80167e5be34c1 into 9acaa33324bbcc78239a1c913d4f1292c12177b9
This commit is contained in:
		
						commit
						84296aba19
					
				@ -355,9 +355,7 @@ func (association *Association) saveAssociations(values ...interface{}) *Associa
 | 
				
			|||||||
		if indirectReflectValue.Kind() == reflect.Struct {
 | 
							if indirectReflectValue.Kind() == reflect.Struct {
 | 
				
			||||||
			saveAssociation(reflectValue)
 | 
								saveAssociation(reflectValue)
 | 
				
			||||||
		} else if indirectReflectValue.Kind() == reflect.Slice {
 | 
							} else if indirectReflectValue.Kind() == reflect.Slice {
 | 
				
			||||||
			for i := 0; i < indirectReflectValue.Len(); i++ {
 | 
								saveAssociation(indirectReflectValue)
 | 
				
			||||||
				saveAssociation(indirectReflectValue.Index(i))
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			association.setErr(errors.New("invalid value type"))
 | 
								association.setErr(errors.New("invalid value type"))
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user