- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parseRelation (0.05 sec)
-
schema/schema.go
} } } // parse relationships for _, field := range relationshipFields { if schema.parseRelation(field); schema.err != nil { return schema, schema.err } } return schema, schema.err } func getOrParse(dest interface{}, cacheStore *sync.Map, namer Namer) (*Schema, error) {Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Oct 31 12:13:56 UTC 2025 - 13.1K bytes - Viewed (0) -
schema/relationship.go
PolymorphicType *Field Value string } type Reference struct { PrimaryKey *Field PrimaryValue string ForeignKey *Field OwnPrimaryKey bool } func (schema *Schema) parseRelation(field *Field) *Relationship { var ( err error fieldValue = reflect.New(field.IndirectFieldType).Interface() relation = &Relationship{ Name: field.Name, Field: field,Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 16 04:11:05 UTC 2025 - 23.1K bytes - Viewed (1)