Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

webmozart
Copy link
Contributor

@webmozart webmozart commented Jan 5, 2022

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 

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.
@jordisala1991
Copy link
Member

jordisala1991 commented Jan 5, 2022

The failure in psalm might get solved in #468

@VincentLanglet VincentLanglet merged commit 8ab389a into sonata-project:1.x Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants