Show part mass in part info page.

This commit is contained in:
Jan Böhmer 2019-08-16 16:43:31 +02:00
parent aafbda3376
commit c2b43f2cfa
7 changed files with 210 additions and 6 deletions

View file

@ -271,6 +271,7 @@ class Part extends AttachmentContainingDBElement
/**
* @var float|null How much a single part unit weighs in gramms.
* @ORM\Column(type="float", nullable=true)
* @Assert\Positive()
*/
protected $mass;