In my application, I need to insert records in the following pattern:
--- Source Country, Destination Country, Duration, Cost ---
In which, I need to check "isUnique" for the combination of "Source
Country" and "Destination Country".
But, I only know to give "isUnique" for a single field in the
$validate array of the specific model.
So, my question is:
Is there any built-in validation rule to check for multiple fields?
OR
Do I need to create a custom function to resolve this problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment