Skip to content

HasManyCreateAssociationMixin does not have primary key assigned #675

@Bullfrog1234

Description

@Bullfrog1234

When there is a many to many relationships it builds to the following:

 addAccountRoles!: Sequelize.HasManyAddAssociationsMixin<
    AccountRole,
    AccountRoleId
  >;
  createAccountRole!: Sequelize.HasManyCreateAssociationMixin<
    AccountRole
  >;
  removeAccountRole!: Sequelize.HasManyRemoveAssociationMixin<
    AccountRole,
    AccountRoleId
  >;

The mixin HasManyCreateAssociationMixin has a second property for the Foreign Key, this should be set to primary key. In most cases this should be the Primary Key of the table unless the foreign key name is something difference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions