mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 18:34:32 +02:00
Added ability to modify the EDA data via the Part-DB API
This commit is contained in:
parent
9994dbd9db
commit
f4b4f14a67
7 changed files with 25 additions and 3 deletions
|
@ -26,12 +26,14 @@ namespace App\Entity\Parts\PartTraits;
|
|||
use App\Entity\EDA\EDAPartInfo;
|
||||
use Doctrine\ORM\Mapping\Column;
|
||||
use Doctrine\ORM\Mapping\Embedded;
|
||||
use Symfony\Component\Serializer\Annotation\Groups;
|
||||
use Symfony\Component\Validator\Constraints\Valid;
|
||||
|
||||
trait EDATrait
|
||||
{
|
||||
#[Valid]
|
||||
#[Embedded(class: EDAPartInfo::class)]
|
||||
#[Groups(['full', 'part:read', 'part:write'])]
|
||||
protected EDAPartInfo $eda_info;
|
||||
|
||||
public function getEdaInfo(): EDAPartInfo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue