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

Commit cfbd2f70 by Timothy Wayne Committed by Jan Aagaard Meier

[ci skip] Update associations.md (#6885)

Fixed the bug described in this issue:
https://github.com/sequelize/sequelize/issues/6882
1 parent 65efbd3f
Showing with 2 additions and 2 deletions
...@@ -745,7 +745,7 @@ A new `Product` and `User` can be created in one step in the following way: ...@@ -745,7 +745,7 @@ A new `Product` and `User` can be created in one step in the following way:
```js ```js
return Product.create({ return Product.create({
title: 'Chair', title: 'Chair',
User: { user: {
first_name: 'Mick', first_name: 'Mick',
last_name: 'Broadstone' last_name: 'Broadstone'
} }
...@@ -791,7 +791,7 @@ Now we can create a project with multiple tags in the following way: ...@@ -791,7 +791,7 @@ Now we can create a project with multiple tags in the following way:
Product.create({ Product.create({
id: 1, id: 1,
title: 'Chair', title: 'Chair',
Tags: [ tags: [
{ name: 'Alpha'}, { name: 'Alpha'},
{ name: 'Beta'} { name: 'Beta'}
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!