Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for relForeignKeys (0.12 sec)

  1. callbacks/preload.go

    			if ref.OwnPrimaryKey {
    				relForeignKeys = append(relForeignKeys, ref.ForeignKey.DBName)
    				relForeignFields = append(relForeignFields, ref.ForeignKey)
    				foreignFields = append(foreignFields, ref.PrimaryKey)
    			} else if ref.PrimaryValue != "" {
    				tx = tx.Where(clause.Eq{Column: ref.ForeignKey.DBName, Value: ref.PrimaryValue})
    			} else {
    				relForeignKeys = append(relForeignKeys, ref.PrimaryKey.DBName)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. schema/relationship.go

    	table := rel.FieldSchema.Table
    	foreignFields := []*Field{}
    	relForeignKeys := []string{}
    
    	if rel.JoinTable != nil {
    		table = rel.JoinTable.Table
    		for _, ref := range rel.References {
    			if ref.OwnPrimaryKey {
    				foreignFields = append(foreignFields, ref.PrimaryKey)
    				relForeignKeys = append(relForeignKeys, ref.ForeignKey.DBName)
    			} else if ref.PrimaryValue != "" {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top