Show error message flash, when an validation error occured.

This commit is contained in:
Jan Böhmer 2019-08-25 18:15:58 +02:00
parent 59748ecc22
commit 082a815f3a
3 changed files with 19 additions and 5 deletions

View file

@ -264,7 +264,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()
* @Assert\PositiveOrZero()
*/
protected $mass;