Skip to content

Commit

Permalink
fix: Fixed serialized property conflict between isThumbnail and `th…
Browse files Browse the repository at this point in the history
…umbnail`
  • Loading branch information
ambroisemaupate committed Jan 28, 2025
1 parent f9a8867 commit e9e4cc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/RoadizCoreBundle/src/Entity/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ public function __clone()
}

#[SymfonySerializer\Groups(['document'])]
#[SymfonySerializer\SerializedName('isThumbnail')] // to avoid conflict with thumbnail property
#[Serializer\Groups(['document'])]
#[Serializer\VirtualProperty]
public function isThumbnail(): bool
Expand Down

0 comments on commit e9e4cc3

Please sign in to comment.