mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-14 06:09:33 +00:00
Allow to import attachments and parameters via entity import
This fixes issue #363
This commit is contained in:
parent
bbf7222a6a
commit
06c8e584a4
19 changed files with 73 additions and 58 deletions
|
|
@ -38,7 +38,7 @@ trait AssociationTrait
|
|||
#[Valid]
|
||||
#[ORM\OneToMany(mappedBy: 'owner', targetEntity: PartAssociation::class,
|
||||
cascade: ['persist', 'remove'], orphanRemoval: true)]
|
||||
#[Groups(['part:read', 'part:write'])]
|
||||
#[Groups(['part:read', 'part:write', 'full'])]
|
||||
protected Collection $associated_parts_as_owner;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ trait EDATrait
|
|||
{
|
||||
#[Valid]
|
||||
#[Embedded(class: EDAPartInfo::class)]
|
||||
#[Groups(['full', 'part:read', 'part:write'])]
|
||||
#[Groups(['full', 'part:read', 'part:write', 'import'])]
|
||||
protected EDAPartInfo $eda_info;
|
||||
|
||||
public function getEdaInfo(): EDAPartInfo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue