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 5f7598dd
authored
Jun 22, 2015
by
Jeff Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in docs on associations
1 parent
a6f5a86e
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 @
5f7598d
...
@@ -5,7 +5,7 @@ One-To-One associations are associations between exactly two models connected by
...
@@ -5,7 +5,7 @@ One-To-One associations are associations between exactly two models connected by
BelongsTo associations are associations where the foreign key for the one-to-one relation exists on the
**source model**
.
BelongsTo associations are associations where the foreign key for the one-to-one relation exists on the
**source model**
.
A simple example would be a
**
User**
being part of a team
**Team**
with the foreign key on us
er.
A simple example would be a
**
Player**
being part of a
**Team**
with the foreign key on the play
er.
```
js
```
js
var
Player
=
this
.
sequelize
.
define
(
'Player'
,
{
/* attributes */
})
var
Player
=
this
.
sequelize
.
define
(
'Player'
,
{
/* attributes */
})
...
...
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