Skip to content

Commit

Permalink
docs(associations): project / tasks example cardinality (#8903)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-gumbley authored and sushantdhiman committed Jan 16, 2018
1 parent 781d528 commit d4a34ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/associations.md
Expand Up @@ -478,8 +478,8 @@ Subscription.hasMany(Invoice, { foreignKey: 'subscription_id' )
Because Sequelize is doing a lot of magic, you have to call `Sequelize.sync` after setting the associations! Doing so will allow you the following:
```js
Project.belongsToMany(Task)
Task.belongsToMany(Project)
Project.hasMany(Task)
Task.belongsTo(Project)

Project.create()...
Task.create()...
Expand Down

0 comments on commit d4a34ae

Please sign in to comment.