From b99e6c9a2113ddd8ff892e481abed7b2e7d13db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 12 Mar 2023 00:35:48 +0100 Subject: [PATCH] Updated serializer discriminator map --- src/Entity/Base/AbstractDBElement.php | 41 +++++++++++++++++++-------- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/src/Entity/Base/AbstractDBElement.php b/src/Entity/Base/AbstractDBElement.php index dd736eac..97b77d53 100644 --- a/src/Entity/Base/AbstractDBElement.php +++ b/src/Entity/Base/AbstractDBElement.php @@ -38,20 +38,37 @@ use Symfony\Component\Serializer\Annotation\Groups; * @ORM\MappedSuperclass(repositoryClass="App\Repository\DBElementRepository") * * @DiscriminatorMap(typeProperty="type", mapping={ - * "attachment_type" = "App\Entity\AttachmentType", - * "attachment" = "App\Entity\Attachment", - * "category" = "App\Entity\Attachment", + * "attachment_type" = "App\Entity\Attachments\AttachmentType", + * "attachment" = "App\Entity\Attachments\Attachment", + * "attachment_type_attachment" = "App\Entity\Attachments\AttachmentTypeAttachment", + * "category_attachment" = "App\Entity\Attachments\CategoryAttachment", + * "currency_attachment" = "App\Entity\Attachments\CurrencyAttachment", + * "footprint_attachment" = "App\Entity\Attachments\FootprintAttachment", + * "group_attachment" = "App\Entity\Attachments\GroupAttachment", + * "label_attachment" = "App\Entity\Attachments\LabelAttachment", + * "manufacturer_attachment" = "App\Entity\Attachments\ManufacturerAttachment", + * "measurement_unit_attachment" = "App\Entity\Attachments\MeasurementUnitAttachment", + * "part_attachment" = "App\Entity\Attachments\PartAttachment", + * "project_attachment" = "App\Entity\Attachments\ProjectAttachment", + * "storelocation_attachment" = "App\Entity\Attachments\StorelocationAttachment", + * "supplier_attachment" = "App\Entity\Attachments\SupplierAttachment", + * "user_attachment" = "App\Entity\Attachments\UserAttachment", + * "category" = "App\Entity\Parts\Category", * "project" = "App\Entity\ProjectSystem\Project", * "project_bom_entry" = "App\Entity\ProjectSystem\ProjectBOMEntry", - * "footprint" = "App\Entity\Footprint", - * "group" = "App\Entity\Group", - * "manufacturer" = "App\Entity\Manufacturer", - * "orderdetail" = "App\Entity\Orderdetail", - * "part" = "App\Entity\Part", - * "pricedetail" = "App\Entity\Pricedetail", - * "storelocation" = "App\Entity\Storelocation", - * "supplier" = "App\Entity\Supplier", - * "user" = "App\Entity\User" + * "footprint" = "App\Entity\Parts\Footprint", + * "group" = "App\Entity\UserSystem\Group", + * "manufacturer" = "App\Entity\Parts\Manufacturer", + * "orderdetail" = "App\Entity\PriceInformations\Orderdetail", + * "part" = "App\Entity\Parts\Part", + * "pricedetail" = "App\Entity\PriceInformation\Pricedetail", + * "storelocation" = "App\Entity\Parts\Storelocation", + * "part_lot" = "App\Entity\Parts\PartLot", + * "currency" = "App\Entity\PriceInformations\Currency", + * "measurement_unit" = "App\Entity\Parts\MeasurementUnit", + * "parameter" = "App\Entity\Parts\AbstractParameter", + * "supplier" = "App\Entity\Parts\Supplier", + * "user" = "App\Entity\UserSystem\User" * }) */ abstract class AbstractDBElement implements JsonSerializable