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. So, I've added a boolean option "required" to my custom IpAddress validator to make this possible (by the way, is this the better way to do this? if I put @NotBlank @IpAddress obviusly it will be @NotBlank AND @IpAddress, and not @NotBlank OR @IpAddress as I needed for this field.).
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. I'm using annotations to configure the constraints for my entities. Is there a way to configure the type of the option or they're always a string or I'm doing something wrong? Thanks. -- 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