Skip to content

fix(symfony): explicitly set the target when mapping entities to resources #7311

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

Merged
merged 1 commit into from
Jul 25, 2025

Conversation

mrossard
Copy link
Contributor

Q A
Branch? main
Tickets Closes #7310

Small fix to force the correct target mapping when an entity is mapped to multiple resources.

@soyuka
Copy link
Member

soyuka commented Jul 24, 2025

just saw the issue nice use case, can you add a functional test into MappingTest?

@mrossard
Copy link
Contributor Author

Sure, I'l try to add one!

@soyuka soyuka force-pushed the fix-7310 branch 2 times, most recently from a1449c7 to 3be2f9e Compare July 25, 2025 09:39
@soyuka soyuka merged commit 02a7649 into api-platform:main Jul 25, 2025
113 of 114 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.

object mapper with multiple resources using the same entity
2 participants