Skip to content

fix: call object mapper with the expected class on 4.3 - #7796

Merged
soyuka merged 1 commit into
api-platform:4.3from
Cafeine42:4.3-object-mapper-post-correct-target
Mar 13, 2026
Merged

fix: call object mapper with the expected class on 4.3#7796
soyuka merged 1 commit into
api-platform:4.3from
Cafeine42:4.3-object-mapper-post-correct-target

Conversation

@Cafeine42

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

When the input DTO or the API resource has multiple mapping targets, during a POST request with ApiPlatform, provide the expected target to the objectMapper to ensure the correct mapping is used.

Same fix than #7795 but on 4.3.

@Cafeine42 Cafeine42 changed the title fix: call object mapper with the expected class Feb 26, 2026
@soyuka soyuka linked an issue Feb 27, 2026 that may be closed by this pull request
@soyuka
soyuka force-pushed the 4.3-object-mapper-post-correct-target branch from 02612b5 to 4ecaa5d Compare March 13, 2026 11:08
@soyuka
soyuka changed the base branch from main to 4.3 March 13, 2026 11:08
@soyuka
soyuka force-pushed the 4.3-object-mapper-post-correct-target branch from 4ecaa5d to edc4a41 Compare March 13, 2026 11:12
@soyuka
soyuka merged commit 263dbd8 into api-platform:4.3 Mar 13, 2026
141 of 151 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants