Carlos Mauricio Samour wrote: > In the examples I read in the wiki using the add action I only see one > model being use. What is the best way of using more the one model that > uses hasMany reletionships into a view? > In my add_new form I want to use 3 models. > When I press the Save button it only sends the data of the first model > and not the rest. > How can I send data for more than one model to a controller? > The other 2 models have a hasMany reletionship. > > model A -> > id > date > hasMany 'Model B, Model D' > > Model B -> > id > A_id > C_id > input1 > input2 > input3 > hasMany 'Model C' > hasOne 'Model A' > > Model C -> > id > name > Model D -> > id > A_id > input1 > > > If I do a findAll() on model A it retreaves the hole data perfectly. > But what I want to do is to create new data in The model A then use > the new id of Model A and create the new data for model B and Model D. > All of these using one view. > > Is there a better way to doit that what I am asking?
I'm very interested in the answer to this as I've got a similar problem. -scott --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---