Hi there !
I've got a property wich can be a string or null.
How to validate this ?
I've been thinking to a OR validator, but I cant find it.
Is there an easy way to validate my property ?
For the record, is there an OR validartor ?
If I'm not clear with my OR validator, I give you an exemple :
/**
* @validation:Or({
* @validation:AssertType(type="string"),
* @validation:AssertType(type="null")
* })
*/
protected $myStringOrNullProperty;
Thanks for reading !
--
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