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

+4 -4
View File
@@ -15,15 +15,15 @@ use Symfony\Component\Serializer\Attribute\Groups;
*/
class CrmSelection
{
#[Groups(['api:single'])]
#[Groups(['api:single', 'snapshot'])]
public ?int $id = null;
#[Groups(['api:single'])]
#[Groups(['api:single', 'snapshot'])]
public ?string $label = null;
#[Groups(['api:single'])]
#[Groups(['api:single', 'snapshot'])]
public bool $mutable = false;
#[Groups(['api:single'])]
#[Groups(['api:single', 'snapshot'])]
public bool $selected = false;
}