Merge pull request #439 from gwTumm/patch-1

Fix type of OwnerType in polymorphism example
This commit is contained in:
Jinzhu 2015-03-30 14:23:27 +08:00
commit c1969b5c1f
1 changed files with 1 additions and 1 deletions

View File

@ -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.