From b283c9b37296a0d73f3aa669aafb6061878fbe33 Mon Sep 17 00:00:00 2001 From: roadiz-ci Date: Mon, 18 Nov 2024 19:51:40 +0000 Subject: [PATCH] fix: Do not generate random IDs for virtual api resources --- src/Api/Model/WebResponseTrait.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Api/Model/WebResponseTrait.php b/src/Api/Model/WebResponseTrait.php index ed1718fa..a7707a77 100644 --- a/src/Api/Model/WebResponseTrait.php +++ b/src/Api/Model/WebResponseTrait.php @@ -26,14 +26,26 @@ trait WebResponseTrait public ?PersistableInterface $item = null; #[Serializer\Groups(['web_response'])] + #[ApiProperty( + identifier: false, + genId: false, + )] public ?BreadcrumbsInterface $breadcrumbs = null; #[Serializer\Groups(['web_response'])] + #[ApiProperty( + identifier: false, + genId: false, + )] public ?NodesSourcesHeadInterface $head = null; /** * @var Collection|null */ #[Serializer\Groups(['web_response'])] + #[ApiProperty( + identifier: false, + genId: false, + )] private ?Collection $blocks = null; /** * @var array|null