Skip to content

Commit 1de48f9

Browse files
authored
Fixed normalization context group value (#1815)
`groups` expect for array, but not a string
1 parent 6931484 commit 1de48f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
240240
name: 'publication',
241241
uriTemplate: '/books/{id}/publication',
242242
controller: CreateBookPublication::class,
243-
normalizationContext: ['groups' => 'publication']
243+
normalizationContext: ['groups' => ['publication']],
244244
)
245245
])]
246246
class Book

0 commit comments

Comments
 (0)