DamienHarper/auditor-bundle

Duplicated audit entries

StonedPunk opened this issue · 0 comments

PHP Version: 8.2
damienharper/auditor-bundle: 5.2.5
mysql: 8.0.32

Summary
The auditor's table duplicates all actions on the entity: update, create, delete

Inputs
Using an example #251, I fixed the error of auditor records not being created. If I remove this, the records stop being created.

CONFIG
dh_auditor:
enabled: true
providers:
doctrine:
auditing_services:
- '@doctrine.orm.default_entity_manager'
entities:
App\Entity\License\License:
enabled: true
App\Entity\License\LicenseExtended:
enabled: true
App\Entity\License\LicenseOld:
enabled: true

###> DH/Auditor-bundle ###
DH\Auditor\Provider\Doctrine\Auditing\Transaction\TransactionManager:
    arguments: [ '@DH\Auditor\Provider\Doctrine\DoctrineProvider' ]

DH\Auditor\Provider\Doctrine\Auditing\Event\DoctrineSubscriber:
    arguments: [ '@DH\Auditor\Provider\Doctrine\Auditing\Transaction\TransactionManager']
    tags:
        - { name: doctrine.event_subscriber, priority: 1000 }
###> DH/Auditor-bundle ###