Nobody can help ?

On May 13, 5:24 pm, chafik <chafik.hn...@gmail.com> wrote:
> Hello,
>
> I'm creating my forms for my application based on my entities.
> I'm wondering if it is possible to stop validation when one rule is
> not verified.
>
> For example, this is an attribute of one of my entities :
>     /**
>      * @orm:Column(type="string", length="100")
>      * @assert:NotNull
>      * @assert:NotBlank
>      * @assert:MaxLength(100)
>      * @assert:Email
>      */
>      protected $email;
>
> When I validate my form with the field "email" empty, all the messages
> are printed, 4 messages, which makes my form very ugly :)
> If it is null, I'd like that the validation stops after "NotNull" and
> print only the "NotNull" message.
> Do one of you have resolved this kind of problem ?
>
> For example in CakePHP, there is the option 'last' => true for each
> rule, allowing to stop validation if the rule is not verified.
>
> Thanks in advance.

-- 
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to