Skip to content

[Timestampable] Timestamps change regardless of whether something changed #46

Closed
trsteel88 opened this Issue Apr 10, 2013 · 4 comments

3 participants

@trsteel88

At the moment, the updated timestamp changes regardless of whether something actually changed in the entity or not.

@PedroTroller
KNP Labs member

It's added to tests and there is no problem :
https://travis-ci.org/KnpLabs/DoctrineBehaviors/jobs/6211616#L99

Can you be more explicit?

@trsteel88

Sorry, I didn't make too much sense.

Basically, if you save a form without changing any of the fields, the updated timestamp changes. This should only change if you actually change something in the entity shouldn't it?

@docteurklein
KNP Labs member

yes it should not change if the entity has no changeset. The test pointed above should prove that it actually works as you expect.

@trsteel88

Sorry, I found the issue. I had a listener that was modifying a collection.

@trsteel88 trsteel88 closed this Apr 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.