SkinnyRecord.save not updating updatedAt timestamp
emanresusername opened this issue · comments
class Member(id: Long, name: String, createdAt: DateTime, updatedAt: DateTime)
...
object Member extends SkinnyCRUDMapper[Member] with TimestampsFeature[EntityTag] {
...
val member = Member.findAll().head // Member(1L, "name", 2016-05-24T05:49:48.000-07:00, 2016-05-24T05:49:48.000-07:00)
// time passes
member.copy(name = "updated").save() // does not change updateAt timestamp
Member.findAll().head // Member(1L, "updated", 2016-05-24T05:49:48.000-07:00, 2016-05-24T05:49:48.000-07:00)
Member.updateById(1).withAttributes('name -> "updated for real now") // works
We should reproduce the issue first.