If you want both models to update then you need the primary id of each
model in the form, if you pass no id for the model it logically
assumes it's an INSERT
echo $form->create('Address');
echo $form->input('Address.id');
echo $form->input('Address.title');
echo $form->input('Address.name');
echo $form->input('AddressAddition.id');
echo $form->input('AddressAddition.field_1');
echo $form->input('AddressAddition.field_2');
echo $form->input('AddressAddition.field_3');
echo $form->end('Submit');
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---