Daler

Results 5 comments of Daler

@RobinBuschmann, this solution doesn't work with associations. ``` @Table @Fix export default class Example extends Model { @AllowNull(false) @ForeignKey(() => SomeModel) @Column(DataType.INTEGER) someModelId!: number; @BelongsTo(() => SomeModel) someModel!: SomeModel; }...

> @DalerAkhmetov Good point. One need to add the association keys as well like so: > > ```ts > [ > ...Object.keys(new.target.rawAttributes), > ...Object.keys(new.target.associations), > ].forEach(propertyKey => { > //...

Hi @RobinBuschmann, I found a bug. Solution https://github.com/RobinBuschmann/sequelize-typescript/issues/612#issuecomment-491890977 doesn't work if I use bulkCreate and pass records as array of Model instance For example: ``` let invoices = []; invoices.push(Invoice.build({amount:...