Hi everyone, I've created a custom validator for IP Addresses but is not getting called. What I did is simply copy the existent Url validator files (Url and UrlValidator), changed the pattern accordingly and removing some stuff (protocols, etc). Then in my Entity via annotations:
/** * @orm:Column(type="string", length="16") * @validation:NotBlank() * @validation:IpAddress() */ protected $primaryDns; NotBlank constraint is working, but my custom validator doesn't. I've put my files in Application/MyBundle/Component/Validator/Constraints/IpAddress.php Application/MyBundle/Component/Validator/Constraints/IpAddressValidator.php Am I missing some step? I've followed the docs from http://docs.symfony-reloaded.org/master/guides/validator/constraints.html My Constraint: http://pastebin.com/zcf8YQ3C My Constraint Validator: http://pastebin.com/uN9nqA6A 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