Skip to content

Commit

Permalink
fix units rules
Browse files Browse the repository at this point in the history
  • Loading branch information
NaaviX committed Dec 8, 2020
1 parent 4ee15b1 commit c561bd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nk/DocumentBundle/Entity/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c561bd5

Please sign in to comment.