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

Commit 630d203f by Mick Hansen

First steps in using a single through parameter for hasMany

1 parent eb7a4f1c
......@@ -102,6 +102,8 @@ module.exports = (function() {
, options = {}
, unassociatedObjects;
console.log(":D")
if ((defaultAttributes || {}).transaction instanceof Transaction) {
options.transaction = defaultAttributes.transaction
delete defaultAttributes.transaction
......
......@@ -34,7 +34,7 @@ module.exports = (function() {
this.source.tableName,
this.isSelfAssociation ? (this.options.as || this.target.tableName) : this.target.tableName
)
};
}
this.options.tableName = this.combinedName = (this.through === Object(this.through) ? this.through.tableName : this.through)
this.associationAccessor = this.options.as || this.combinedName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!