Skip to content

HasManyCreateAssociationMixin does not have primary key assigned #675

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

Activity

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

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