Thanks Stof.

I looked at the FOSUserBundle validators but in the validation.xml file, the 
custom constraints are defined outside the properties, and the property is a 
parameter of the validator.
I would like to attach my validator directly to the property just like any 
other validator :

<property name="username">
    <constraint name="Ano\Bundle\MiscBundle\Validator\Constraints\NotExist">
        <option name="message">username.NotExist</option>
    </constraint>
</property>

But it doesn't work. Is that not possible ?


*
--
Benjamin Dulau - anonymation CEO
anonymation.com | code.anonymation.com
ben...@anonymation.com
*

-- 
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