Fixed imports of parameters on parts

It was missing the required serialization group. This fixes issue #718
This commit is contained in:
Jan Böhmer 2024-10-13 21:35:31 +02:00
parent 76e945bbbd
commit 0c47aa226c

View file

@ -118,7 +118,7 @@ class Part extends AttachmentContainingDBElement
/** @var Collection<int, PartParameter> /** @var Collection<int, PartParameter>
*/ */
#[Assert\Valid] #[Assert\Valid]
#[Groups(['full', 'part:read', 'part:write'])] #[Groups(['full', 'part:read', 'part:write', 'import'])]
#[ORM\OneToMany(mappedBy: 'element', targetEntity: PartParameter::class, cascade: ['persist', 'remove'], orphanRemoval: true)] #[ORM\OneToMany(mappedBy: 'element', targetEntity: PartParameter::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
#[ORM\OrderBy(['group' => Criteria::ASC, 'name' => 'ASC'])] #[ORM\OrderBy(['group' => Criteria::ASC, 'name' => 'ASC'])]
#[UniqueObjectCollection(fields: ['name', 'group', 'element'])] #[UniqueObjectCollection(fields: ['name', 'group', 'element'])]