From 9efa44ada04345091b73a2179078f50434f15ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 2 Aug 2026 14:11:39 +0200 Subject: [PATCH] Keep footprint EDA info on import Fixes #1392 --- src/Entity/Parts/Category.php | 2 +- src/Entity/Parts/Footprint.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Entity/Parts/Category.php b/src/Entity/Parts/Category.php index 316e116f..aee1725e 100644 --- a/src/Entity/Parts/Category.php +++ b/src/Entity/Parts/Category.php @@ -218,7 +218,7 @@ class Category extends AbstractPartsContainingDBElement #[Assert\Valid] #[ORM\Embedded(class: EDACategoryInfo::class)] - #[Groups(['full', 'category:read', 'category:write'])] + #[Groups(['full', 'category:read', 'category:write', 'import'])] protected EDACategoryInfo $eda_info; public function __construct() diff --git a/src/Entity/Parts/Footprint.php b/src/Entity/Parts/Footprint.php index 54c85734..d8d1d3db 100644 --- a/src/Entity/Parts/Footprint.php +++ b/src/Entity/Parts/Footprint.php @@ -122,7 +122,7 @@ class Footprint extends AbstractPartsContainingDBElement #[ORM\OrderBy(['name' => Criteria::ASC])] protected Collection $children; - #[Groups(['footprint:read', 'footprint:write'])] + #[Groups(['footprint:read', 'footprint:write', "import"])] protected string $comment = ''; /** @@ -162,7 +162,7 @@ class Footprint extends AbstractPartsContainingDBElement #[Assert\Valid] #[ORM\Embedded(class: EDAFootprintInfo::class)] - #[Groups(['full', 'footprint:read', 'footprint:write'])] + #[Groups(['full', 'footprint:read', 'footprint:write', "import"])] protected EDAFootprintInfo $eda_info; public function __construct()