Hi,
I wonder where I could find detailed information on how data[index] is
computed on HTML form for the cases of various relation in the model.
What I mean by data[index] is for example data[name] for a Person when
a person creation form is submited, you can see that also on the HTTP
post.
Now, if a Person belongs to Something, you'll see data[something_id] ...
I have now the complex case of several HATBM from Person to
SomethingElse, so in the model my arrays has defferent name :
var $hasAndBelongsToMany = array(
'relation1' => array(
'className' => 'T',
'joinTable' => 'Person_T_relation1',
'foreignKey' => 'person_id',
'associationForeignKey' => 't_id',
),
'relation2' => array(
'className' => 'T',
'joinTable' => 'Person_T_relation2',
'foreignKey' => 'person_id',
'associationForeignKey' => 't_id',
)
);
it works fine "by hand" but it failed from HTML form. What is the
index in data[index] here for relation1 and 2 ?
Thanks !
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---