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 ?
I have a
usersmodel withhasMany('addresses', {description:String}, db.model.addresses)when I try to useuser.setAddresses()oruser.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 ?