不要怂,就是干,撸起袖子干!

Commit 2b319304 by musicformellons Committed by Sushant

docs(associations): incorrect model name used in hasMany (#8686)

1 parent 78fb5c15
Showing with 2 additions and 2 deletions
......@@ -179,7 +179,7 @@ When information about association is present in **target** model we can use `ha
Coach.hasOne(Team) // `coachId` will be added on Team / Target model
```
## One-To-Many associations
## One-To-Many associations (hasMany)
One-To-Many associations are connecting one source with multiple targets. The targets however are again connected to exactly one specific source.
```js
......@@ -704,7 +704,7 @@ const Series = sequelize.define('series', {
trainer_id: {
type: DataTypes.INTEGER,
references: {
model: "trainers",
model: "trainer",
key: "id"
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!