Updated serializer discriminator map

This commit is contained in:
Jan Böhmer 2023-03-12 00:35:48 +01:00
parent 49944cda87
commit b99e6c9a21

View file

@ -38,20 +38,37 @@ use Symfony\Component\Serializer\Annotation\Groups;
* @ORM\MappedSuperclass(repositoryClass="App\Repository\DBElementRepository") * @ORM\MappedSuperclass(repositoryClass="App\Repository\DBElementRepository")
* *
* @DiscriminatorMap(typeProperty="type", mapping={ * @DiscriminatorMap(typeProperty="type", mapping={
* "attachment_type" = "App\Entity\AttachmentType", * "attachment_type" = "App\Entity\Attachments\AttachmentType",
* "attachment" = "App\Entity\Attachment", * "attachment" = "App\Entity\Attachments\Attachment",
* "category" = "App\Entity\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" = "App\Entity\ProjectSystem\Project",
* "project_bom_entry" = "App\Entity\ProjectSystem\ProjectBOMEntry", * "project_bom_entry" = "App\Entity\ProjectSystem\ProjectBOMEntry",
* "footprint" = "App\Entity\Footprint", * "footprint" = "App\Entity\Parts\Footprint",
* "group" = "App\Entity\Group", * "group" = "App\Entity\UserSystem\Group",
* "manufacturer" = "App\Entity\Manufacturer", * "manufacturer" = "App\Entity\Parts\Manufacturer",
* "orderdetail" = "App\Entity\Orderdetail", * "orderdetail" = "App\Entity\PriceInformations\Orderdetail",
* "part" = "App\Entity\Part", * "part" = "App\Entity\Parts\Part",
* "pricedetail" = "App\Entity\Pricedetail", * "pricedetail" = "App\Entity\PriceInformation\Pricedetail",
* "storelocation" = "App\Entity\Storelocation", * "storelocation" = "App\Entity\Parts\Storelocation",
* "supplier" = "App\Entity\Supplier", * "part_lot" = "App\Entity\Parts\PartLot",
* "user" = "App\Entity\User" * "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 abstract class AbstractDBElement implements JsonSerializable