Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
1,404
Widok
0
03/12/2019 9:41 pm
Topic starter
can't create table
1 Answer
0
03/12/2019 9:43 pm
Topic starter
if you’re using objects instead of string-names the you should replace
Project.belongsToMany('User', {through: 'UserProject'}); User.belongsToMany('Project', {through: 'UserProject'});
with
Project.belongsToMany(this.User, {through: 'UserProject'}); User.belongsToMany(this.Project, {through: 'UserProject'});