Hey all,

Can somebody recommend to me a good validation practice?

I want to cut down on the amount of duplication in my code.

I see the options as :

Propel Validations - handy as I can put the validations inside my  
schema. This is useful for simple validations - min and max chars,  
postcodes, phone numbers etc. Not really useful for complex business- 
logic level validators (which are often defined after the model layer  
is anyway), and only works with an XML schema. Doesn't work with YML  
schema (meaning sfAlternativeSchamePlugin is no use to you...). Can be  
used by other non-symfony applications.

Symfony validate.yml's - AFAIK, only useful for validating forms. Nice  
and modular approach though. These aren't model level validators, and  
only work within Symfony.

sfPropelValidatePlugin - appears to use both Symfony validation in a  
model context, which solves the DRY problem I'm having, but I guess  
means my model objects will only work with Symfony?

Anybody have any thoughts about how best to validate your models AND  
your forms with minimal (ideally no) repetition?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to