2008/9/30 Francois Zaninotto <[EMAIL PROTECTED]>:
> Er... Not sure if the generator syntax is the place for this debate. The
> generator uses the form framework, and the form framework embarks
> validation. So your question might better be: should validation be at the
> model level or at the form level? And this question has been debated quite a
> number of times, including in this mailing-list.

I don't think validation belongs in the model.  Some does, but... a
lot of it is specific to the current user context.  For example, a
user might not be allowed to submit a form with a blank email address,
where as an admin could.  On top of that, what about forms with
'virtual fields', that don't match directly a single element of the
model?

Some validation however should go on in the model....  but, like
Francios said, although I've missed this debate on the list before,
I'm probably just spurting stuff that's been said many times before :)

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