Added a part info tab to show in which projects the part is used.

This commit is contained in:
Jan Böhmer 2022-12-18 23:58:04 +01:00
parent d5b1c6be0a
commit 7f38095e82
4 changed files with 64 additions and 5 deletions

View file

@ -72,7 +72,7 @@ class ProjectBOMEntry extends AbstractDBElement
/**
* @var Part|null The part associated with this
* @ORM\ManyToOne(targetEntity="App\Entity\Parts\Part")
* @ORM\ManyToOne(targetEntity="App\Entity\Parts\Part", inversedBy="project_bom_entries")
* @ORM\JoinColumn(name="id_part", referencedColumnName="id", nullable=true)
*/
protected ?Part $part = null;