Skip to content

bulkCreate does not populate dataValues correctly #9274

@kaxelson

Description

@kaxelson

What are you doing?

When calling bulkCreate:

What do you expect to happen?

I expect it to populate the dataValues like save does:

values[attr] = values[this.constructor.rawAttributes[attr].field];

What is actually happening?

bulkCreate incorrectly invokes the set function when populating the model's dataValues:

instance.set(attr, instance.dataValues[this.rawAttributes[attr].field]);

Note : Your issue may be ignored OR closed by maintainers if it's not tested against latest version OR does not follow issue template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions