I never understood why validation should be at the model level (1). Do you
have the same validation with frontend or backend application ? what about
user's permissions, how to you manage this at the model level ?

[1] model should only check data integrity constraint

On Mon, Mar 15, 2010 at 7:05 PM, Jacob Coby <[email protected]> wrote:

>
> On Mar 14, 2010, at 4:16 PM, Bernhard Schussek wrote:
>
> > The validation in Symfony 2 is handled by a seperate Validator
> > component. Its meta data, i.e. validated classes, properties and also
> > error messages can all easily be accessed. Parsing the meta data for
> > error messages and writing the non-translated ones to a file should
> > not be a problem.
>
> Why not make the models responsible for data validation?  I've never
> understood the desire to require the use of form objects.
>
> --
> Jacob Coby
>
>
>
>
>
>
> --
> 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]<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>



-- 
Thomas Rabaix
http://rabaix.net

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