From 4a1ae3f53943738fd1dd327900ab866dc3e3fff4 Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Thu, 1 Feb 2018 00:44:06 +0800 Subject: [PATCH] Update asserts for battery price --- src/Entity/Battery.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Entity/Battery.php b/src/Entity/Battery.php index c1c95931..57c773e8 100644 --- a/src/Entity/Battery.php +++ b/src/Entity/Battery.php @@ -118,6 +118,8 @@ class Battery // selling price /** * @ORM\Column(type="decimal", precision=7, scale=2, nullable=true) + * @Assert\NotBlank() + * @Assert\Range(min=0, minMessage="This value should be a valid number.") */ protected $sell_price;