Well, you could use the custom validation methods, so that your model for the attributes implements one validation rule only.
That rule take into account the name of the attribute and invokes the remaining validations that this attribute requires. I assume here that the attribute will have the same validation rules no matter which entity the attribute will be used. Would that be a satisfying idea to you? Enjoy, John On May 23, 9:32 am, azv <[email protected]> wrote: > I'm setting up a data model in which each item entity has many > attributes. attributes are stored in a different table, and there's a > one-many relationship from item to attributes. > > now, I'd like to use the cakephp validation capabilities on attributes > (eg, email attribute and so on). > it's very simple to validate fields which are columns in the table- > but how do i validate the attributes (which are entries in the > attributes table) ? > > thanks! > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" 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 > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en
