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
Describe the bug
When a relation is only specified in one direction on the ModelSchema, then the pivot fields are on the wrong side of the relation. For example, when there is a relationship users belongs to many roles, there is a rolesPivot on the User type. While there should only be a usersPivot on the Roles type, because there is no way to retrieve the users from the roles.
Describe the bug
When a relation is only specified in one direction on the ModelSchema, then the pivot fields are on the wrong side of the relation. For example, when there is a relationship
users
belongs to manyroles
, there is arolesPivot
on theUser
type. While there should only be ausersPivot
on theRoles
type, because there is no way to retrieve the users from the roles.To Reproduce
The text was updated successfully, but these errors were encountered: