From 2f6b62813463f9d0125d654c05641fffeb432fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 29 Sep 2025 13:41:18 +0200 Subject: [PATCH] Fix: re-add Serializer discriminator map to `Motive` entity - Enabled `type` property discrimination for serialization with `DiscriminatorMap`. - Prepared `Motive` entity for serialization of motive types. --- src/Bundle/ChillTicketBundle/src/Entity/Motive.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Bundle/ChillTicketBundle/src/Entity/Motive.php b/src/Bundle/ChillTicketBundle/src/Entity/Motive.php index 08e300d97..1be0fe47f 100644 --- a/src/Bundle/ChillTicketBundle/src/Entity/Motive.php +++ b/src/Bundle/ChillTicketBundle/src/Entity/Motive.php @@ -17,9 +17,11 @@ use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ReadableCollection; use Doctrine\Common\Collections\Selectable; use Doctrine\ORM\Mapping as ORM; +use Symfony\Component\Serializer\Annotation as Serializer; #[ORM\Entity()] #[ORM\Table(name: 'motive', schema: 'chill_ticket')] +#[Serializer\DiscriminatorMap(typeProperty: 'type', mapping: ['ticket_motive' => Motive::class])] class Motive { #[ORM\Id]