In my model I'm doing something like:
var $validate = array(
'slug' => array('rule' => 'isUnique', 'on' => 'create',
'message' =>
'This title slug has already been taken.'),
'venue_type_id' => array('numeric'),...
Creating a new record works fine.
Now the problem is it is doing the validation again when I edit the
record and save. It does the validation which of course fails (there
is 1 row with this same slug- the record i just edited)
What am I missing?
Zoltan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---