Adding missing createRoles association method for HasMany relationship #11372
Labels
good first issue
For issues. An issue that is a good choice for first-time contributors.
status: understood
For issues. Applied when the issue is understood / reproducible.
type: feature
For issues and PRs. For new features. Never breaking changes.
Issue Description
Is your feature request related to a problem? Please describe.
I have a OneToMany relationship between a Post and Comments. I noticed that this relationship provides me with the following methods:
In a particular use case that I have, I also need a
createRoles
method, which is not provided.Describe the solution you'd like
I'd like the
hasMany
relationship to generate this method for me along with the other ones.Why should this be in Sequelize
I think this is a valid use case. Just as we are able to
addRoles
andremoveRoles
, it makes sense to me that we should be able tocreateRoles
too.Issue Template Checklist
Is this issue dialect-specific?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: