Id -> ID
This commit is contained in:
		
							parent
							
								
									c1c4f9f86e
								
							
						
					
					
						commit
						3601b19cbd
					
				
							
								
								
									
										2
									
								
								scope.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								scope.go
									
									
									
									
									
								
							@ -967,7 +967,7 @@ func (scope *Scope) shouldSaveAssociations() bool {
 | 
				
			|||||||
func (scope *Scope) related(value interface{}, foreignKeys ...string) *Scope {
 | 
					func (scope *Scope) related(value interface{}, foreignKeys ...string) *Scope {
 | 
				
			||||||
	toScope := scope.db.NewScope(value)
 | 
						toScope := scope.db.NewScope(value)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for _, foreignKey := range append(foreignKeys, toScope.typeName()+"Id", scope.typeName()+"Id") {
 | 
						for _, foreignKey := range append(foreignKeys, toScope.typeName()+"ID", scope.typeName()+"ID") {
 | 
				
			||||||
		fromField, _ := scope.FieldByName(foreignKey)
 | 
							fromField, _ := scope.FieldByName(foreignKey)
 | 
				
			||||||
		toField, _ := toScope.FieldByName(foreignKey)
 | 
							toField, _ := toScope.FieldByName(foreignKey)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user