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

Commit 5c8e1b8d by Mick Hansen

Merge pull request #3508 from rbtnguyen/patch-1

Fixing typo, grammar in associations/mixin.js
2 parents cfba87fe 4fcafe30
Showing with 2 additions and 2 deletions
......@@ -8,7 +8,7 @@ var Utils = require('./../utils')
/**
* Creating assocations in sequelize is done by calling one of the belongsTo / hasOne / hasMany functions
* on a model (the source), and prodiving another model as the first argument to the function (the target).
* on a model (the source), and providing another model as the first argument to the function (the target).
*
* * hasOne - adds a foreign key to target
* * belongsTo - add a foreign key to source
......@@ -208,7 +208,7 @@ Mixin.belongsTo = singleLinked(BelongsTo);
* ```
* ```js
* jan.addProject(homework, { started: false }) // The homework project is not started yet
* jan.setProjects([makedinner, doshopping], { started: true}) // Both shopping and dinner has been started
* jan.setProjects([makedinner, doshopping], { started: true}) // Both shopping and dinner have been started
* ```
*
* If you want to set several target instances, but with different attributes you have to set the attributes on the instance, using a property with the name of the through model:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!