Skip to content

Conversation

mrossard
Copy link
Contributor

Q A
Branch? 4.2
Tickets Closes #7347
License MIT

Followup on #7345. This version waits for the doctrine flush() before trying to map the inserted entites to resources, which should ensure we invalidate the related resource collections correctly.

The related test was also reworked, it didn't do what it should. On that point i'm not sure whether it's correct to prophesize the ObjectMapper...the test would be better with a real instance IMO, but i can't (yet?) figure out how to do that easily.

@mrossard mrossard marked this pull request as draft August 27, 2025 10:13
@mrossard mrossard force-pushed the fix-collection-iris-invalidation branch 3 times, most recently from a31cfef to 77ee6c7 Compare September 3, 2025 07:51
@mrossard mrossard force-pushed the fix-collection-iris-invalidation branch from 77ee6c7 to 3210bfb Compare September 3, 2025 07:55
@mrossard mrossard marked this pull request as ready for review September 3, 2025 08:02
@mrossard
Copy link
Contributor Author

mrossard commented Sep 3, 2025

@soyuka this version should be better. Next on this subject would be to add invalidation for non-doctrine stuff, but finding the correct moment to gather obsolete items / call the purge may be tricky.

@soyuka
Copy link
Member

soyuka commented Sep 3, 2025

@mrossard this is quite easy to do manually with all the extension points thanks for the bug fix looks nice!

@soyuka soyuka merged commit b80ab9a into api-platform:4.2 Sep 3, 2025
111 of 114 checks passed
@mrossard mrossard deleted the fix-collection-iris-invalidation branch September 3, 2025 09:41
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