I want to store in my database all the user actions done about an entity.
For example, for 1 entity, I want to store :
- Created by (= author)
- Updated by
- Date of creation
- Date of update
I want to store the history of the actions of a user, not the last ones. I thought I could create a table with these columns :
- log_id
- user_id
- entity_id
- action (= "create" or "update" or something else)
- date
And then, I could easily get the last update of my entity and display the date and the user who did it.
Is there a Symfony bundle to do this ? Should I use Monolog ? I will do this for many entities and I'm not sure if this is the correct way to do...
Is it possible to create only one logs table to store each log about each entity ? It bothers me to create 1 logs table per entity.