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
{{ message }}
Repository navigation
Special method/mixin "add" for BelongsToMany association overrides record instead of creating a new one #16984
A new record should have been created, especially because another field of the junction table is passed—although to be honest in any case I think I'd expect what is happening without an unique constraint being defined.
Setting through.unique to false doesn't change anything.
What is actually happening?
The third test is executing this:
[Sequelize] Executed (default): UPDATE FooBarAttachments SET restrictionId=$1 WHERE fooName = $2 AND barName = $3; {"$1":3,"$2":"TS foo","$3":"TS bar"} [Elapsed time: 0 ms]
Environment
Sequelize version: 6.11.0
Node.js version: 20.9.0
If TypeScript related: TypeScript version: 5.1.6
Database & Version: Postgres 16.1
Connector library & Version: 8.9.0
Would you be willing to resolve this issue by submitting a Pull Request?
No, I don't have the time, and I understand that I will need to wait until someone from the community or maintainers is interested in resolving my issue.
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
Activity