Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to update 'updatedAt' column in bulk update? #1962
Using master version.
In both cases updatedAt column is ignored (it does not appear in SQL SET statement).
@mickhansen , yep the validation and instance creation is the issue, read only attributes are skipped.
A simple fix is adding raw: true to https://github.com/sequelize/sequelize/blob/master/lib/model.js#L1375. But then setters will not be called? Is that expected behaviour for bulk?
edit did a quick check - all tests pass when adding raw: true