Skip to content

fix(symfony): publish mercure updates for all resources of an entity#7774

Merged
soyuka merged 1 commit intoapi-platform:mainfrom
soyuka:fix/multiple-mercure
Feb 18, 2026
Merged

fix(symfony): publish mercure updates for all resources of an entity#7774
soyuka merged 1 commit intoapi-platform:mainfrom
soyuka:fix/multiple-mercure

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Feb 17, 2026

Q A
Branch? 4.3
Tickets
License MIT
Doc PR
  • SplObjectStorage keyed by entity only allowed one update per entity; replaced with array to support multiple entries per resource
  • storeObjectToPublish iterates all resources in the metadata collection and stores a separate entry for each one that has mercure enabled
  • publishUpdate uses the specific operation for normalization context and IRI resolution

@soyuka soyuka force-pushed the fix/multiple-mercure branch from 3778643 to 3944957 Compare February 17, 2026 17:22
| Q             | A
| ------------- | ---
| Branch?       | fix/multiple-mercure
| Tickets       | ∅
| License       | MIT
| Doc PR        | ∅

* SplObjectStorage keyed by entity only allowed one update per entity;
  replaced with array to support multiple entries per resource
* storeObjectToPublish iterates all resources in the metadata collection
  and stores a separate entry for each one that has mercure enabled
* publishUpdate uses the specific operation for normalization context
  and IRI resolution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@soyuka soyuka force-pushed the fix/multiple-mercure branch from 3944957 to 6d4a831 Compare February 17, 2026 20:07
@soyuka soyuka merged commit 23840f9 into api-platform:main Feb 18, 2026
149 checks passed
@soyuka soyuka deleted the fix/multiple-mercure branch February 18, 2026 08:03
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.

1 participant

Comments