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

Commit 48cb0275 by Mick Hansen

Merge pull request #3049 from penghou620/master

hasMany to belongsToMany for many-to-many
2 parents 38760fbc 8c83f090
Showing with 1 additions and 1 deletions
......@@ -104,7 +104,7 @@ User.belongsToMany(Project, { as: 'Tasks', through: 'worker_tasks' })
Project.belongsToMany(User, { as: 'Workers', through: 'worker_tasks' })
```
Of course you can also define self references with hasMany:
Of course you can also define self references with belongsToMany:
```js
Person.belongsToMany(Person, { as: 'Children', through: 'PersonChildren' })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!