Instead of give you bad info, I'll give you the source: http://manual.cakephp.org/chapter/models search for this heading: Saving Related Model Data With that said, you can correct me on the following if I'm wrong.
You should be able to do something like $this->Employee->Address->save($this->data); -- Baz L Web Development 2.0 http://WebDevelopment2.com/ On Dec 3, 2007 1:51 PM, Brian <[EMAIL PROTECTED]> wrote: > > I have a from under an Employee view / model / table like this > https://www.website.com/employees/register. > register is a form that needs to input data into several diff tables. > The form works great for inserting data into the employee table but > not sure how to get it to insert into the employee_addresses table. my > form elements are Employee/first_name etc... and I have included a > hasMany relationship in the Employee model to the EmployeeAddress > model. > Please help. > Brian > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
