From c561bd5300beeb41a200a1807980b1e95f00678e Mon Sep 17 00:00:00 2001 From: NaaviX Date: Tue, 8 Dec 2020 01:32:13 +0100 Subject: [PATCH] fix units rules --- src/nk/DocumentBundle/Entity/Document.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nk/DocumentBundle/Entity/Document.php b/src/nk/DocumentBundle/Entity/Document.php index 3e38f31..c150f83 100644 --- a/src/nk/DocumentBundle/Entity/Document.php +++ b/src/nk/DocumentBundle/Entity/Document.php @@ -60,9 +60,8 @@ class Document /** * @var string * - * @ORM\Column(name="unit", type="string", length=10) + * @ORM\Column(name="unit", type="string", length=30) * @Assert\NotBlank() - * @Assert\Regex("/^[A-Z]{2,4}-[0-9]{4}$|^[A-Z]{2}[0-9]{1}[A-Z]{1}[0-9]{2}$|^[A-Z]{2}-[0-9]{4}$/") * @Serializer\Groups({"list", "details"}) */ private $unit;