Thanks Jon, the unique field is actually a pairwise uniqueness. So I believe I do need a custom method. I just did a $this->findCount() in my model with the fields that need to be unique. Works well.
On Mar 28, 2:36 pm, jonknee <[EMAIL PROTECTED]> wrote: > > Dardo beat me to it...I was going to suggest the same thing: a custom > > validation method to make sure you have a unique "slot name" > > No need to make it custom, it's built into 1.2 Model::isUnique() and > can be accessed as a validation rule: > > 'rule' => 'isUnique' > > It works great, I'm using it for usernames/email addresses. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
