I have a question about the validator component. My entity has the following properties:
- title (@assert:NotBlank) - author_name (@assert:NotBlank) - author_email (@assert:NotBlank @assert:Email) - html (@assert:NotBlank) My "Add template" form has the following fields: - title - author_name - author_email My "Edit html template" form has the following field: - html The problem is that when I am adding a new template the html property is blank so validation will fail. How do I prevent this? In other words: how do I exclude the validation of the HTML property on the "Add template" page? When I am editing the template I only want to validate the html property. So then it cannot be blank. Hope someone can help me out. -- 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
