sonata-project / EntityAuditBundle

Audit for Doctrine Entities
https://sonata-project.org
MIT License
633 stars 261 forks source link

Fixed join columns to be converted to the correct type #469

Closed webmozart closed 2 years ago

webmozart commented 2 years ago

Subject

Currently, AuditReader fails when handling ToOne associations with Symfony Uuids as primary keys. This is fixed by converting the join column value with the join column's type as is already done in line 834 for regular fields.

I am targeting this branch, because this is a simple patch.

Changelog

### Fixed
- Fixed `AuditReader` to process to-many associations using IDs with custom types 
jordisala1991 commented 2 years ago

The failure in psalm might get solved in #468