You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following code with ManyToMany relationship between users table and roles table through user_role table,
Adonis may understand to reference the table user_role by default but it seems to reference a the table user_user_role instead. Maybe a double concatenation issue of the pivotForeign table (here the table users) ?
Package version
14.2.0
Node.js and npm version
node 14.16.0 & npm 6.14.11
Given the following code with
ManyToMany
relationship betweenusers
table androles
table throughuser_role
table,Adonis may understand to reference the table
user_role
by default but it seems to reference a the tableuser_user_role
instead. Maybe a double concatenation issue of thepivotForeign
table (here the tableusers
) ?Sample Code (to reproduce the issue)
NB: The alternative solution is to use custom
pivotTable
. But the default behavior have to be sufficient.The text was updated successfully, but these errors were encountered: