fix: reduce snapshot payloads via serializer group and hydration
This commit is contained in:
1 parent
3b6ee90a7e
commit
6f07678f04
15 files changed
+142
-105
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user