forked from mirror/gorm
Fix type of OwnerType in polymorphism example
This commit is contained in:
parent
7d16055a5d
commit
3bd7cab8d6
|
@ -546,7 +546,7 @@ Supports polymorphic has-many and has-one associations.
|
||||||
Id int
|
Id int
|
||||||
Name string
|
Name string
|
||||||
OwnerId int
|
OwnerId int
|
||||||
OwnerType int
|
OwnerType string
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
Note: polymorphic belongs-to and many-to-many are explicitly NOT supported, and will throw errors.
|
Note: polymorphic belongs-to and many-to-many are explicitly NOT supported, and will throw errors.
|
||||||
|
|
Loading…
Reference in New Issue