Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkinnyRecord.save not updating updatedAt timestamp #327

Open
emanresusername opened this issue May 24, 2016 · 1 comment
Open

SkinnyRecord.save not updating updatedAt timestamp #327

emanresusername opened this issue May 24, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@emanresusername
Copy link

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
@seratch seratch added this to the 2.1.x milestone May 24, 2016
@seratch seratch added the bug label May 24, 2016
@seratch seratch self-assigned this May 24, 2016
@seratch
Copy link
Member

seratch commented Mar 15, 2018

We should reproduce the issue first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants