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 332d4c9b
authored
Dec 20, 2013
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update based on style comments
1 parent
d7f72a94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
lib/associations/has-many.js
lib/associations/has-many.js
View file @
332d4c9
...
...
@@ -63,10 +63,14 @@ module.exports = (function() {
var
paired
=
false
// If through is default, we determine pairing by the accesor value (i.e. DAOFactory's using as won't pair, but regular ones will)
if
(
self
.
through
===
true
&&
accessor
===
self
.
associationAccessor
)
paired
=
true
if
(
self
.
through
===
true
&&
accessor
===
self
.
associationAccessor
)
{
paired
=
true
}
// If through is not default, determine pairing by through value (model/string)
if
(
self
.
through
!==
true
&&
self
.
options
.
through
===
association
.
options
.
through
)
paired
=
true
// If
if
(
self
.
through
!==
true
&&
self
.
options
.
through
===
association
.
options
.
through
)
{
paired
=
true
}
// If paired, set properties identifying both associations as double linked, and allow them to each eachtoerh
if
(
paired
)
{
self
.
doubleLinked
=
true
association
.
doubleLinked
=
true
...
...
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