Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OwnPrimaryKey (0.1 sec)

  1. schema/schema_helper_test.go

    						found = true
    					}
    				}
    
    				if !found {
    					var refs []string
    					for _, rf := range r.References {
    						var primaryKey, primaryKeySchema string
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Dec 15 08:31:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. callbacks/delete.go

    					table          = rel.JoinTable.Table
    					tx             = db.Session(&gorm.Session{NewDB: true}).Model(modelValue).Table(table)
    				)
    
    				for _, ref := range rel.References {
    					if ref.OwnPrimaryKey {
    						foreignFields = append(foreignFields, ref.PrimaryKey)
    						relForeignKeys = append(relForeignKeys, ref.ForeignKey.DBName)
    					} else if ref.PrimaryValue != "" {
    						queryConds = append(queryConds, clause.Eq{
    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