Hi Dave, If the field being validated is located in a table, wherein the users id also is, then you can create a unique index on the combination (field + user_id) for the table, thus having the database taking care of the validation.
Enjoy, John On Aug 31, 8:13 pm, "Dave Maharaj :: WidePixels.com" <[email protected]> wrote: > I need to add a custom validation rule but cant quite figure out how to do > it. > > The field being validated has to be unique specific to the user. So User1 > can use 'foo' , User2 can use 'foo' but each user cannot use 'foo' twice. > > What would be the best way to handle something like this? > > Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
