Le 14/02/2011 01:39, Konstantin Kudryashov a écrit :
You can validate not only class attributes, but methods itself. It
means, that you can create your own method with custom logic, that
will return true/false in different cases and you can link Boolean
validator to that method's return value.
To be exact you can only validate the methods whose name begins with
"is" or "get" as the validator only allows validating getters. See
http://docs.symfony-reloaded.org/master/guides/validator/constraints.html#getters
for the doc.
--
Christophe | Stof
--
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