mirror of https://github.com/go-gorm/gorm.git
Formatting code with gomt
This commit is contained in:
parent
9235b47ea2
commit
9f409820df
|
@ -22,7 +22,7 @@ func saveFieldAsAssociation(scope *Scope, field *Field) (bool, *Relationship) {
|
|||
|
||||
func saveBeforeAssociationsCallback(scope *Scope) {
|
||||
for _, field := range scope.Fields() {
|
||||
ok, relationship := saveFieldAsAssociation(scope, field);
|
||||
ok, relationship := saveFieldAsAssociation(scope, field)
|
||||
if relationship != nil && relationship.Kind == "belongs_to" {
|
||||
fieldValue := field.Field.Addr().Interface()
|
||||
if ok && scope.shouldSaveAssociations() {
|
||||
|
|
Loading…
Reference in New Issue