Skip to content

Commit

Permalink
fix: Do not generate random IDs for virtual api resources
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Nov 18, 2024
1 parent 54dadd3 commit b283c9b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Api/Model/WebResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, WalkerInterface>|null
*/
#[Serializer\Groups(['web_response'])]
#[ApiProperty(
identifier: false,
genId: false,
)]
private ?Collection $blocks = null;
/**
* @var array<RealmInterface>|null
Expand Down

0 comments on commit b283c9b

Please sign in to comment.