mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +02:00
Add inversedby attribute to part->measurement unit relation association
This commit is contained in:
parent
e19cd67b88
commit
cd2534335a
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ class Part extends AttachmentContainingDBElement
|
|||
|
||||
/**
|
||||
* @var ?MeasurementUnit The unit in which the part's amount is measured.
|
||||
* @ORM\ManyToOne(targetEntity="MeasurementUnit")
|
||||
* @ORM\ManyToOne(targetEntity="MeasurementUnit", inversedBy="parts")
|
||||
* @ORM\JoinColumn(name="id_part_unit", referencedColumnName="id", nullable=true)
|
||||
*/
|
||||
protected $partUnit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue