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

Commit c1ed9a1b by Ricardo Graça

Fix missing foreign key attribute in BelongsTo.

- the injectAttributes method should update the source DAO as that's
where the foreign key is.
1 parent 60ebce19
Showing with 1 additions and 1 deletions
......@@ -27,7 +27,7 @@ module.exports = (function() {
Utils._.defaults(this.source.rawAttributes, newAttributes)
// Sync attributes to DAO proto each time a new assoc is added
this.target.DAO.prototype.attributes = Object.keys(this.target.DAO.prototype.rawAttributes);
this.source.DAO.prototype.attributes = Object.keys(this.source.DAO.prototype.rawAttributes);
return this
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!