Hi Bernhard, Just trying to get an understanding of the annotation syntax to use for the validation annotations:
1) See this example file in DoctrineUserBundle: https://github.com/knplabs/DoctrineUserBundle/blob/symfony2Security/Model/User.php /** * @validation:Validation({ * @validation:NotBlank(message="Please enter a username", groups="Registration"), * @validation:MinLength(limit=2, message="The username is too short", groups="Registration"), * @validation:MaxLength(limit=255, message="The username is too long", groups="Registration") * }) */ 2) I guess this could also be written like so: /** * ({ * @validation:NotBlank(message="Please enter a username", groups="Registration"), * @validation:MinLength(limit=2, message="The username is too short", groups="Registration"), * @validation:MaxLength(limit=255, message="The username is too long", groups="Registration") * }) */ 3) But the following also seems to work: /** * @validation:NotBlank(message="Please enter a username", groups="Registration"), * @validation:MinLength(limit=2, message="The username is too short", groups="Registration"), * @validation:MaxLength(limit=255, message="The username is too long", groups="Registration") */ Are all of these version equivalent? Are 1) and 2) just syntax sugar? regards, Lukas Kahwe Smith m...@pooteeweet.org -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en