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