Hi,
maybe I'm just plain stupid but I can't get my head around a custom
validation rule for HABTM with 1.2
It's no problem to trigger a rule for any other associations, like:
var $validate = array(
'field_name =>array(
'rule' => 'myRule'
))
But how do I trigger validation for a HABTM association?
I've got some checkboxes in my view which look something like this:
<input type="checkbox" name="data[Surface][Surface][]"
value="something">
How do I trigger validation for these fields in another model which
has an HABTM-association with 'Surface'?
I've tried to replace 'field_name' (from my example above) with
'Surface', 'Surface/Surface' and 'Surface.Surface' but nothing seems
to work.
Has somebody a hint?
TIA.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---