mirror of https://github.com/go-gorm/gorm.git
Fix incorrect documentation comment (has many -> has one) (#6382)
This commit is contained in:
parent
7157b7e375
commit
7dd702d379
|
@ -11,7 +11,7 @@ import (
|
||||||
// He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
|
// He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
|
||||||
// He speaks many languages (many to many) and has many friends (many to many - single-table)
|
// He speaks many languages (many to many) and has many friends (many to many - single-table)
|
||||||
// His pet also has one Toy (has one - polymorphic)
|
// His pet also has one Toy (has one - polymorphic)
|
||||||
// NamedPet is a reference to a Named `Pets` (has many)
|
// NamedPet is a reference to a named `Pet` (has one)
|
||||||
type User struct {
|
type User struct {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
Name string
|
Name string
|
||||||
|
|
Loading…
Reference in New Issue