2010/11/24 Gustavo Adrian <[email protected]>:
> Hi everyone,
> I've recently created a custom validator to validate IP. I have four fields
> that need a mandatory IP, and one field in that the IP is optional.

I'm not sure I understand the example. Can you put @NotBlank
constraints on all fields, and additionally @IpAddress constraints on
the first three?

> The thing is that, on the "isValid" method, checking for the "required"
> property of the constraint I've noticed that the value was indeed a string,
> and not a boolean.

There currently is no way to configure the expected type of an option.

Bernhard
--
Software Architect & Engineer
Blog: http://webmozarts.com
Twitter: http://twitter.com/webmozart

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to