Search code examples
symfonydoctrinedoctrine-extensions

Doctrine behavioral extensions: Loggable with Timestampable


As I understand from the docs, you can get a full history of changes on an entity with Loggable as long as it is configured as \Versioned in the entity. I was wondering if this log history retains also a timestamp of the changes? If not, is it possible to combine with Timestampable to get a full history with timestamp? Or should I add a timestamp field that I \Versioned and manage myself?

I want to know what and when a certain entity changed.

What would be a good approach to this problem?


Solution

  • https://github.com/l3pp4rd/DoctrineExtensions/blob/master/lib/Gedmo/Loggable/Entity/MappedSuperclass/AbstractLogEntry.php#L35

    Is loggedAt property an answer for your question?