|
@@ -7,6 +7,8 @@ use \Doctrine\Common\Collections\ArrayCollection;
|
7
|
7
|
use Gedmo\Mapping\Annotation as Gedmo;
|
8
|
8
|
use Doctrine\ORM\EntityManager;
|
9
|
9
|
use Muzich\CoreBundle\Entity\GroupsTagsFavorites;
|
|
10
|
+use Symfony\Component\Validator\Constraints as Assert;
|
|
11
|
+use Muzich\CoreBundle\Validator as MuzichAssert;
|
10
|
12
|
|
11
|
13
|
/**
|
12
|
14
|
* Le groupe est une sorte de liste de diffusion, a laquelle les
|
|
@@ -33,6 +35,9 @@ class Group
|
33
|
35
|
* Nom du groupe
|
34
|
36
|
*
|
35
|
37
|
* @ORM\Column(type="string", length=128)
|
|
38
|
+ * @Assert\NotBlank()
|
|
39
|
+ * @Assert\MinLength(limit=3)
|
|
40
|
+ * @Assert\MaxLength(64)
|
36
|
41
|
* @var type string
|
37
|
42
|
*/
|
38
|
43
|
protected $name;
|
|
@@ -47,6 +52,7 @@ class Group
|
47
|
52
|
* Description
|
48
|
53
|
*
|
49
|
54
|
* @ORM\Column(type="text")
|
|
55
|
+ * @Assert\MaxLength(2048)
|
50
|
56
|
* @var type string
|
51
|
57
|
*/
|
52
|
58
|
protected $description;
|