DataDogAuditBundle icon indicating copy to clipboard operation
DataDogAuditBundle copied to clipboard

Error on save undefined method named "addLogger"

Open Petrucheqa opened this issue 3 years ago • 3 comments

Hello,

I'm facing this error on entity edit : Capture d’écran 2021-12-29 à 11 19 21

Here is SF configuration : Capture d’écran 2021-12-29 à 11 18 59

bundle config :

data_dog_audit:
    audited_entities:
        - App\Entity\Formation

Tell me if you want more informations about the "bug".

Petrucheqa avatar Dec 29 '21 10:12 Petrucheqa

Previously there wasn't a version constraint on doctrine/dbal which is likely the cause of this. Can you update to v0.1.21 and let us know if you still have this issue?

natewiebe13 avatar Dec 30 '21 19:12 natewiebe13

Seems to be removed in doctrine/dbal https://github.com/doctrine/dbal/blob/3.2.x/UPGRADE.md#deprecated-sqllogger-and-its-implementations https://github.com/doctrine/dbal/commit/06dc97e0faf2a2012e2c8e0c07289a99a806301f#diff-ede4922d6cee6c8394a3d85443d4a4e4b0faf43fd34190fb1d82193116f4d928

digitalshow avatar Jan 03 '22 18:01 digitalshow

Correct, this was fixed in https://github.com/DATA-DOG/DataDogAuditBundle/commit/519d1574c44e5b889e509bd66c2200f400fb5dce.

My guess here is the latest version of this bundle is not being used.

natewiebe13 avatar Jan 03 '22 18:01 natewiebe13