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

Commit 8c83f090 by Peng Hou

hasMany to belongsToMany for many-to-many

1 parent d170b5da
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!