Hi Bernhard, I am wondering how I can write a unique validator that works both on the class level and on the property level: https://github.com/FriendsOfSymfony/UserBundle/blob/master/Validator/Unique.php
Right now there is a required "property" option, which can be a comma separated list of properties to check for uniqueness. For a class level validator that makes sense, but the same validator also supports being set on a property. So in that case I would like to make the "property" option unsupported and instead figure out the property somehow from the constraint instance. So my questions: 1) how can I determine if the validator is class or property level inside the Unique class? 2) how can I determine the name of the property from the constraint instance? regards, Lukas Kahwe Smith [email protected] -- 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 developers" 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-devs?hl=en
