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

Commit 158ac9df by Kevin Kwa Committed by Jan Aagaard Meier

Minor typos (#7772)

Should reference products instead of projects in "Creating elements of a "HasMany" or "BelongsToMany" association" section.
1 parent e239a04d
Showing with 2 additions and 2 deletions
...@@ -811,7 +811,7 @@ return Product.create({ ...@@ -811,7 +811,7 @@ return Product.create({
### Creating elements of a "HasMany" or "BelongsToMany" association ### Creating elements of a "HasMany" or "BelongsToMany" association
Let's introduce the ability to associate a project with many tags. Setting up the models could look like: Let's introduce the ability to associate a product with many tags. Setting up the models could look like:
```js ```js
const Tag = this.sequelize.define('tag', { const Tag = this.sequelize.define('tag', {
...@@ -822,7 +822,7 @@ Product.hasMany(Tag); ...@@ -822,7 +822,7 @@ Product.hasMany(Tag);
// Also works for `belongsToMany`. // Also works for `belongsToMany`.
``` ```
Now we can create a project with multiple tags in the following way: Now we can create a product with multiple tags in the following way:
```js ```js
Product.create({ Product.create({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!