-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
type: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type
Description
What are you doing?
const person = await Person.findOne(); // firstName: 'henri'
person.firstName = 'henriette'
console.log(person.changed()) // ['firstName']
await person.reload()
console.log(person.changed()) // ['firstName']
await person.save() // UPDATE `persons` SET `firstName`='henri',`updatedAt`='2018-06-26 09:45:58' WHERE `id` = '1dzokreaa3v'What do you expect to happen?
- After reload has been called
person.changed()should be false person.save()should not launch anUPDATEquery
What is actually happening?
Dialect: mysql
Sequelize version:^4.38.0
Metadata
Metadata
Assignees
Labels
type: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type