From b0a4d78e45d3ce88d5abb9c129c2214a7f551341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20G=2E=20Luque=20y=20Guzm=C3=A1n=20S=C3=A1enz?= Date: Wed, 25 Jun 2014 15:39:27 -0500 Subject: [PATCH] Update User.php --- src/CsnUser/Entity/User.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/CsnUser/Entity/User.php b/src/CsnUser/Entity/User.php index 5804cd8..1ca3db0 100644 --- a/src/CsnUser/Entity/User.php +++ b/src/CsnUser/Entity/User.php @@ -57,6 +57,23 @@ class User * }) */ protected $username; + + /** + * @var string + * + * @ORM\Column(name="display_name", type="string", length=30, nullable=false, unique=true) + * @Annotation\Type("Zend\Form\Element\Text") + * @Annotation\Filter({"name":"StripTags"}) + * @Annotation\Filter({"name":"StringTrim"}) + * @Annotation\Validator({"name":"StringLength", "options":{"encoding":"UTF-8", "min":6, "max":30}}) + * @Annotation\Validator({"name":"Regex", "options":{"pattern":"/^[ña-zÑA-Z][ña-zÑA-Z0-9\_\-]+$/"}}) + * @Annotation\Required(false) + * @Annotation\Attributes({ + * "type":"text", + * "required":"false" + * }) + */ + protected $displayName; /** * @var string