Allow to to disable the saving of changed or deleted data.

Also it is possible to only save the information which fields were changed, not the data in it.
This commit is contained in:
Jan Böhmer 2020-02-23 21:04:16 +01:00
parent 2bc6a2be3c
commit b5bc096972
4 changed files with 76 additions and 5 deletions

View file

@ -74,6 +74,10 @@ services:
- { name: "doctrine.orm.entity_listener" }
App\EventSubscriber\EventLoggerSubscriber:
arguments:
$save_changed_fields: '%env(bool:HISTORY_SAVE_CHANGED_FIELDS)%'
$save_changed_data: '%env(bool:HISTORY_SAVE_CHANGED_DATA)%'
$save_removed_data: '%env(bool:HISTORY_SAVE_REMOVED_DATA)%'
tags:
- { name: 'doctrine.event_subscriber' }