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;