-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Milestone
Description
I have a users model with hasMany('addresses', {description:String}, db.model.addresses) when I try to use user.setAddresses() or user.addAddresses()it throws an error saying "No associations defined".
I checked out the code line that threw the error (line 398, Many.js file) and it is an if statement checking if Associations.length === 0, but as it seems, Associations never gets an object pushed, it seems like it would always have length = 0.
What could I be doing wrong ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels