Skip to content

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Nov 17, 2022

Q A
Branch? 2.7
Tickets n/a
License MIT
Doc PR n/a
#[ApiResource(
    provider: [RelationGroupImpactOnCollection::class, 'getData'],
    operations: [
        new GetCollection(),
        new Get(normalizationContext: ['groups' => 'related']),
    ]
)]

When using this declaration, we expect the groups to be active only on the Get operation but right now they're also active on the GetCollection.

@soyuka soyuka force-pushed the fix-bug-serialization-27 branch from f609ced to 8cf86b2 Compare November 17, 2022 10:16
@soyuka soyuka force-pushed the fix-bug-serialization-27 branch from 6abc87f to fb0afb9 Compare November 17, 2022 11:14
@soyuka soyuka merged commit ebaad51 into api-platform:2.7 Nov 18, 2022
@soyuka soyuka deleted the fix-bug-serialization-27 branch November 21, 2022 09:30
soyuka added a commit to soyuka/core that referenced this pull request Nov 21, 2022
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