Skip to content

added noAlias check on BelongsToMany relation#623

Open
MHamzaRajput wants to merge 5 commits intosequelize:masterfrom
MHamzaRajput:master
Open

added noAlias check on BelongsToMany relation#623
MHamzaRajput wants to merge 5 commits intosequelize:masterfrom
MHamzaRajput:master

Conversation

@MHamzaRajput
Copy link

on noAlias = true

Before:

roles.belongsToMany(permissions, { as: 'permissionIdPermissions', through: rolePermissions, foreignKey: "roleId", otherKey: "permissionId" });

After:

roles.belongsToMany(permissions, { through: rolePermissions, foreignKey: "roleId", otherKey: "permissionId" });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant