Why don't you use Form validation for validating user input?
You could bind data in the service layer and in the controller you
could just call getForm or something like that.

Both those features would be helpful, but in your case, if you are
doing validation in the service layer and don't want to do it with the
forms, just don't assign any validators to a form and it won't do any
validation and there won't be any overhead.

On Tue, May 3, 2011 at 3:47 PM, dbenjamin <[email protected]> wrote:
> Hum is see in the Form class that validation is performed during data
> binding.
> That way, my validation is performed two times.
> Actually there is no way to tell a form to not perform validation, this
> could add an useless overhead when validating data in another layer.
> What about adding two features to the forms :
> 1/ An option to prevent validation
> 2/ A method to set recursively (children) errors directly from a
> ConstraintViolationList
> What do you think ?
>
> --
> Benjamin Dulau - anonymation CEO
> anonymation.com | code.anonymation.com
> [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
>

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

Reply via email to