Repository navigation
Conversation
soyuka
force-pushed
the
feat/runtime-resources
branch
2 times, most recently
from
November 24, 2026 13:10
1d3f9e2 to
1f44711
Compare
An entity behind N resources (stateOptions) only purged the entity
class tags. Collections with uri variables (/parents/{id}/children)
were never purged.
This was referenced Dec 1, 2026
soyuka
force-pushed
the
feat/runtime-resources
branch
from
December 1, 2026 14:38
1f44711 to
ef3b893
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When one persisted object backs several resources (
stateOptions, ObjectMapper#[Map]), the Doctrine listeners only know about the entity class. HTTP cache purge and Mercure then either skip the resources or publish the entity itself.ResourceObjectResolverInterfaceturns a persisted object into the resource objects that expose it:The default
api_platform.state.resource_object_resolverreturns the object itself when it is a resource. Otherwise it maps the object to each#[Map]target. The purge listener uses it, and now also purges collections that have uri variables (subresources). Mercure uses it when you opt in:When the target depends on the data, decorate it:
Updating a
ProductEntitynow purges/bundles/1(or/products/1) and its collection, and publishes the Mercure update on that resource's topic.Part of the runtime-defined resources work, the rest is split in:
openapi_use_uri_template, feat(serializer): merge-patch string-keyed maps (api_merge_patch_maps) #8921api_merge_patch_maps