Added ability to modify the EDA data via the Part-DB API

This commit is contained in:
Jan Böhmer 2023-12-03 00:57:11 +01:00
parent 9994dbd9db
commit f4b4f14a67
7 changed files with 25 additions and 3 deletions

View file

@ -26,12 +26,14 @@ namespace App\Entity\EDA;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Embeddable;
use Symfony\Component\Serializer\Annotation\Groups;
#[Embeddable]
class EDAFootprintInfo
{
/** @var string|null The KiCAD footprint, which should be used (the path to the library) */
#[Column(type: Types::STRING, nullable: true)]
#[Groups(['full', 'footprint:read', 'footprint:write'])]
private ?string $kicad_footprint = null;
public function getKicadFootprint(): ?string