I have a form saving data across 4 tables and hope to use one saveAll
call. How do I specify the fieldList attribute for the saveAll
function to save the following fields ...
Model1.field1, Model1.field2, Model2.field3, Model3.field4
I have tried
array('Model1.field1', 'Model1.field2', 'Model2.field3',
'Model4.field4')
But as soon as I enter the model name before the field it fails to
save those fields
I have tried
array('Model1'=>'field1', 'Model1'=>'field2', 'Model2'=>'field1',
'Model3'=>'field1')
But quickly banged my head against the nearest wall as this can't work
due to duplicate key names
I then tried
array(
'Model1'=>array('field1', 'field2'),
'Model2'=>array('field3'),
'Model3'=>array('field4')
)
But this fails too ... any ideas ppl?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---