Added an admin page for currencies.

This commit is contained in:
Jan Böhmer 2019-08-12 23:45:21 +02:00
parent 87e6f641c3
commit 2468409212
15 changed files with 374 additions and 9 deletions

View file

@ -69,6 +69,17 @@ class MeasurementUnit extends StructuralDBElement
*/
protected $usesSIPrefixes;
/**
* @ORM\OneToMany(targetEntity="MeasurementUnit", mappedBy="parent", cascade={"persist"})
*/
protected $children;
/**
* @ORM\ManyToOne(targetEntity="MeasurementUnit", inversedBy="children")
* @ORM\JoinColumn(name="parent_id", referencedColumnName="id")
*/
protected $parent;
/**
* Returns the ID as an string, defined by the element class.
* This should have a form like P000014, for a part with ID 14.