Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for copyableDataType (0.07 seconds)

  1. schema/relationship.go

    			schema.err = fmt.Errorf("invalid polymorphic type %v for %v on field %s, missing primaryKey field",
    				relation.FieldSchema, schema, field.Name)
    			return
    		}
    
    		// use same data type for foreign keys
    		if copyableDataType(primaryKeyField.DataType) {
    			relation.Polymorphic.PolymorphicID.DataType = primaryKeyField.DataType
    		}
    		relation.Polymorphic.PolymorphicID.GORMDataType = primaryKeyField.GORMDataType
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Nov 16 04:11:05 GMT 2025
    - 23.1K bytes
    - Click Count (1)
Back to Top