Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for owner_id (3.06 sec)

  1. schema/relationship_test.go

    						FieldSchema: "Toy",
    						Polymorphic: Polymorphic{ID: "owner_id", Type: "Type", Value: "users"},
    						References: []Reference{
    							{ForeignKey: "Type", ForeignSchema: "Toy", PrimaryValue: "users"},
    						},
    					},
    				},
    			},
    		})
    	})
    
    	t.Run("has many", func(t *testing.T) {
    		type Toy struct {
    			ID        int
    			Name      string
    			OwnerID   int
    			OwnerType string
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top