mirror of https://github.com/go-gorm/gorm.git
fix: correct grammar
This commit is contained in:
parent
a35883590b
commit
573b9fa536
2
gorm.go
2
gorm.go
|
@ -413,7 +413,7 @@ func (db *DB) SetupJoinTable(model interface{}, field string, joinTable interfac
|
||||||
relation, ok := modelSchema.Relationships.Relations[field]
|
relation, ok := modelSchema.Relationships.Relations[field]
|
||||||
isRelation := ok && relation.JoinTable != nil
|
isRelation := ok && relation.JoinTable != nil
|
||||||
if !isRelation {
|
if !isRelation {
|
||||||
return fmt.Errorf("failed to found relation: %s", field)
|
return fmt.Errorf("failed to find relation: %s", field)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, ref := range relation.References {
|
for _, ref := range relation.References {
|
||||||
|
|
Loading…
Reference in New Issue