Show parts count on AdminPages of PartsContainingDBElements

This commit is contained in:
Jan Böhmer 2019-09-04 19:37:35 +02:00
parent 082608dbd9
commit e19cd67b88
10 changed files with 97 additions and 38 deletions

View file

@ -82,6 +82,11 @@ class MeasurementUnit extends PartsContainingDBElement
*/
protected $parent;
/**
* @ORM\OneToMany(targetEntity="Part", mappedBy="partUnit", fetch="EXTRA_LAZY")
*/
protected $parts;
/**
* Returns the ID as an string, defined by the element class.
* This should have a form like P000014, for a part with ID 14.