xiidea / EasyAuditBundle

A Symfony Bundle To Log Selective Events
http://xiidea.github.io/EasyAuditBundle/
MIT License
89 stars 22 forks source link

Get previous value and changed value. #53

Closed cAstraea closed 1 year ago

cAstraea commented 3 years ago

How can I access this information ? If it dump the event it's there I think but no way to access it. All I'm getting is array:2 [ "description" => "Listing has been updated with id = "1085"" "type" => "Listing updated"

which is not very useful

ronisaha commented 2 years ago

The default entity resolver doesn't store the change set. If you like to store the changed data, you can add another field to your AuditLog entity class i.e. changeSet. and implement your own DoctrineEventResolver class extending base given one and set the value there.

You can read the discussion about it here