mirror of https://github.com/go-gorm/gorm.git
Merge pull request #439 from gwTumm/patch-1
Fix type of OwnerType in polymorphism example
This commit is contained in:
commit
c1969b5c1f
|
@ -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