Well, I'm not sure what you mean by "recursive"... But yes, you can have one form that saves to two models. On the form side just add all the fields that you would normally have on two separate forms. The one controller action that receives the form just needs to have two save calls, one for each model type. The only tricky thing is that your ModelX needs to be saved first so your ModelY can have the correct model_x_id set. And then if the ModelY save fails due to invalid parameters - should the ModelX save be rolled back? In which case it might be worth looking at database transactions (there was an article on the Bakery).
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
