Re: unique validation problem

2009-09-10 Thread brian
On Thu, Sep 10, 2009 at 5:09 AM, Dr. Loboto wrote: > > Cake's "isUnique" method handles create & update situations well (so > you do not need "on" => "create" at all). Are you sure that you make > update? It is the common error - do not provide ID to model when want > update and it makes create i

Re: unique validation problem

2009-09-10 Thread Dr. Loboto
Cake's "isUnique" method handles create & update situations well (so you do not need "on" => "create" at all). Are you sure that you make update? It is the common error - do not provide ID to model when want update and it makes create instead. And do not "respect" the key "on" of course because it

Re: unique validation problem

2009-09-09 Thread brian
On Wed, Sep 9, 2009 at 1:42 PM, brian wrote: > I have the following validatio rules: > > 'email' => array( >        'valid' => array( >                'rule' => 'email', >                'required' => true, >                'allowEmpty' => false, >                'message' => 'You must provide an

unique validation problem

2009-09-09 Thread brian
I have the following validatio rules: 'email' => array( 'valid' => array( 'rule' => 'email', 'required' => true, 'allowEmpty' => false, 'message' => 'You must provide an email address.' ), 'duplicate' => array