KnpLabs / DoctrineBehaviors

Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
http://knplabs.com
MIT License
911 stars 287 forks source link

Timestampable entity - updated_at column contains timestam after creating. #693

Closed skocdopolet closed 2 years ago

skocdopolet commented 2 years ago

Hello,

I am using a timestampable entity. When I create a new entity and save it, the "created_at" field correctly contains the current datetime, but the "updated_at" field also contains the current date too.

As I expect, the field "updated_at" should be null. It should be contain the datetime value only after updating this entity.

Cheers Tomas

TomasVotruba commented 2 years ago

Hi, this is expected value. The difference is that updated at is always changed.