Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SaveAfterAssociations (0.14 sec)

  1. callbacks/associations.go

    						if saveAssociations(db, rel, rv, selectColumns, restricted, nil) == nil {
    							setupReferences(db.Statement.ReflectValue, rv)
    						}
    					}
    				}
    			}
    		}
    	}
    }
    
    func SaveAfterAssociations(create bool) func(db *gorm.DB) {
    	return func(db *gorm.DB) {
    		if db.Error == nil && db.Statement.Schema != nil {
    			selectColumns, restricted := db.Statement.SelectAndOmitColumns(create, !create)
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
Back to top