Do not remove associated Project BOM entries if part is deleted

Instead the part name is put into the name field. This fixes issue #1068
This commit is contained in:
Jan Böhmer 2025-10-17 21:30:40 +02:00
parent e06d9da186
commit 6e4ae15438
2 changed files with 60 additions and 1 deletions

View file

@ -15,7 +15,7 @@ trait ProjectTrait
/**
* @var Collection<ProjectBOMEntry> $project_bom_entries
*/
#[ORM\OneToMany(mappedBy: 'part', targetEntity: ProjectBOMEntry::class, cascade: ['remove'], orphanRemoval: true)]
#[ORM\OneToMany(targetEntity: ProjectBOMEntry::class, mappedBy: 'part')]
protected Collection $project_bom_entries;
/**