Powiadomienia
Wyczyść wszystko
BugOverflow
1
Wpisy
1
Użytkownicy
0
Reactions
1,570
Widoki
0
03/12/2019 9:41 pm
Rozpoczynający temat
can't create table
1 odpowiedź
0
03/12/2019 9:43 pm
Rozpoczynający temat
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'});