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 67b0f76b
authored
Jun 14, 2013
by
Jesse Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set association tableName to options.joinTableName even if options.tableName was inherited
1 parent
2a25f661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
lib/associations/has-many.js
lib/associations/has-many.js
View file @
67b0f76
...
@@ -19,6 +19,7 @@ module.exports = (function() {
...
@@ -19,6 +19,7 @@ module.exports = (function() {
this
.
isSelfAssociation
?
(
this
.
options
.
as
||
this
.
target
.
tableName
)
:
this
.
target
.
tableName
this
.
isSelfAssociation
?
(
this
.
options
.
as
||
this
.
target
.
tableName
)
:
this
.
target
.
tableName
)
)
this
.
associationAccessor
=
this
.
combinedName
=
(
this
.
options
.
joinTableName
||
combinedTableName
)
this
.
associationAccessor
=
this
.
combinedName
=
(
this
.
options
.
joinTableName
||
combinedTableName
)
this
.
options
.
tableName
=
this
.
combinedName
var
as
=
(
this
.
options
.
as
||
Utils
.
pluralize
(
this
.
target
.
tableName
))
var
as
=
(
this
.
options
.
as
||
Utils
.
pluralize
(
this
.
target
.
tableName
))
...
...
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