fix: reduce snapshot payloads via serializer group and hydration

This commit is contained in:
Björn Fromme committed 2026-03-24 17:06:10 +01:00
1 parent 3b6ee90a7e
commit 6f07678f04
15 files changed
+142 -105

No files matched your search

+2 -2
View File
@@ -14,9 +14,9 @@ use Symfony\Component\Serializer\Attribute\Groups;
*/
class Guide
{
#[Groups(['api:single'])]
#[Groups(['api:single', 'snapshot'])]
public ?string $name = null;
#[Groups(['api:single'])]
#[Groups(['api:single', 'snapshot'])]
public ?string $phone = null;
}