Skip to content

fix(serializer): read the current relation for deep_object_to_populate - #8825

Merged
soyuka merged 2 commits into
api-platform:5.0from
Maxcastel:fix/serializer-deep-object-to-populate
Nov 12, 2026
Merged

soyuka merged 2 commits into
api-platform:5.0from
Maxcastel:fix/serializer-deep-object-to-populate

Conversation

@Maxcastel

@Maxcastel Maxcastel commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
License MIT

Since symfony/symfony#67883, deep_object_to_populate only reads the current value of typed attributes. Our item normalizer types attributes itself and gives Symfony no type extractor, so on PATCH a nested object is now created instead of updated: PatchTest::testPatchRelation fails in CI on Symfony dev and Symfony 8.1.

The normalizer now reads it itself, for the attributes typed in our metadata.

@Maxcastel
Maxcastel marked this pull request as ready for review November 9, 2026 08:58
@soyuka soyuka changed the title fix(serializer): read the current relation for deep_object_to_populat fix(serializer): read the current relation for deep_object_to_populate Nov 12, 2026
@soyuka
soyuka merged commit f40f12f into api-platform:5.0 Nov 12, 2026
103 of 107 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants