- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for OwnerType (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/helper_test.go
AssertObjEqual(t, pet.Toy, expect.Toy, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "OwnerID", "OwnerType") if expect.Toy.Name != "" && expect.Toy.OwnerType != "pets" { t.Errorf("toys's OwnerType, expect: %v, got %v", "pets", expect.Toy.OwnerType) } } func CheckUserUnscoped(t *testing.T, user User, expect User) { doCheckUser(t, user, expect, true) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:27:38 GMT 2026 - 8.6K bytes - Click Count (0) -
schema/relationship_test.go
Type: schema.HasOne, Schema: "User", FieldSchema: "Toy", Polymorphic: Polymorphic{ID: "OwnerID", Type: "OwnerType", Value: "users"}, References: []Reference{ {ForeignKey: "OwnerType", ForeignSchema: "Toy", PrimaryValue: "users"}, {ForeignKey: "OwnerType", ForeignSchema: "Toy", PrimaryValue: "users"}, }, }, "Toys": { Name: "Toys",
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Aug 18 11:44:52 GMT 2025 - 26.5K bytes - Click Count (0) -
schema/schema_test.go
}, { Name: "Toys", Type: schema.HasMany, Schema: "User", FieldSchema: "Toy", Polymorphic: Polymorphic{ID: "OwnerID", Type: "OwnerType", Value: "users"}, References: []Reference{{"ID", "User", "OwnerID", "Toy", "", true}, {"", "", "OwnerType", "Toy", "users", false}}, }, { Name: "Company", Type: schema.BelongsTo, Schema: "User", FieldSchema: "Company",Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Aug 28 02:57:17 GMT 2025 - 13.3K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeToken.java
return result; } private boolean isOwnedBySubtypeOf(Type supertype) { for (TypeToken<?> type : getTypes()) { Type ownerType = type.getOwnerTypeIfPresent(); if (ownerType != null && of(ownerType).isSubtypeOf(supertype)) { return true; } } return false; } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 53.8K bytes - Click Count (0) -
schema/relationship.go
// // type User struct { // Toys []Toy `gorm:"polymorphic:Owner;"` // } // type Pet struct { // Toy Toy `gorm:"polymorphic:Owner;"` // } // type Toy struct { // OwnerID int // OwnerType string // } func (schema *Schema) buildPolymorphicRelation(relation *Relationship, field *Field) { polymorphic := field.TagSettings["POLYMORPHIC"] relation.Polymorphic = &Polymorphic{ Value: schema.Table,Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun Nov 16 04:11:05 GMT 2025 - 23.1K bytes - Click Count (1)