Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 26caf72f
authored
Mar 25, 2016
by
Travis Vander Hoop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use possessive form of its
1 parent
87fcaec6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
docs/docs/associations.md
docs/docs/associations.md
View file @
26caf72
...
@@ -240,7 +240,7 @@ User.belongsToMany(Project, { through: UserProjects })
...
@@ -240,7 +240,7 @@ User.belongsToMany(Project, { through: UserProjects })
Project
.
belongsToMany
(
User
,
{
through
:
UserProjects
})
Project
.
belongsToMany
(
User
,
{
through
:
UserProjects
})
```
```
To add a new project to a user and set it
'
s status, you pass an extra object to the setter, which contains the attributes for the join table
To add a new project to a user and set its status, you pass an extra object to the setter, which contains the attributes for the join table
```
js
```
js
user
.
addProject
(
project
,
{
status
:
'started'
})
user
.
addProject
(
project
,
{
status
:
'started'
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment