Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DeleteBeforeAssociations (0.15 sec)

  1. callbacks/callbacks.go

    	deleteCallback.Match(enableTransaction).Register("gorm:begin_transaction", BeginTransaction)
    	deleteCallback.Register("gorm:before_delete", BeforeDelete)
    	deleteCallback.Register("gorm:delete_before_associations", DeleteBeforeAssociations)
    	deleteCallback.Register("gorm:delete", Delete(config))
    	deleteCallback.Register("gorm:after_delete", AfterDelete)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 27 23:56:55 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  2. callbacks/delete.go

    			if i, ok := value.(BeforeDeleteInterface); ok {
    				db.AddError(i.BeforeDelete(tx))
    				return true
    			}
    
    			return false
    		})
    	}
    }
    
    func DeleteBeforeAssociations(db *gorm.DB) {
    	if db.Error == nil && db.Statement.Schema != nil {
    		selectColumns, restricted := db.Statement.SelectAndOmitColumns(true, false)
    		if !restricted {
    			return
    		}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Feb 25 02:48:23 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top