{"comment":{"created_at":"2011-10-20T08:39:06Z","body":"yes, implement the \"preUpdate\" lifecycle event. it will only be called if the object is really updated, then set a flag on your entity \"updated => true\" and have a getter for it.","updated_at":"2011-10-20T08:39:06Z","url":"https://api.github.com/repos/symfony/symfony/issues/comments/2466093","id":2466093,"user":{"avatar_url":"https://secure.gravatar.com/avatar/75f5fb3ddda052e46f1daed314ae69ab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"75f5fb3ddda052e46f1daed314ae69ab","url":"https://api.github.com/users/beberlei","id":26936,"login":"beberlei"}},"action":"created","issue":{"number":2345,"created_at":"2011-10-07T15:05:21Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I use the function computeChangeSet(ClassMetadata $class, $entity) for logging if there is any changes before persist and flush. It works fine except with date field. I think there is a modification when symfony compute the date from the 3 fields year, month, day. But it is not a change of value; just a change of representation.","comments":18,"title":"UnitOfWork wrong result for function computeChangeSet with date","updated_at":"2011-10-20T08:39:06Z","url":"https://api.github.com/repos/symfony/symfony/issues/2345","id":1844541,"assignee":null,"milestone":null,"closed_at":"2011-10-15T16:11:43Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/62da34608c24f49fdce1d2b83f3f0ac1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"62da34608c24f49fdce1d2b83f3f0ac1","url":"https://api.github.com/users/jforet","id":1083434,"login":"jforet"},"html_url":"https://github.com/symfony/symfony/issues/2345","labels":[{"name":"Doctrine","url":"https://api.github.com/repos/symfony/symfony/labels/Doctrine","color":"FF8000"}],"state":"closed"},"legacy":{"issue_id":1844541,"comment_id":2466093}}