Re: saveall for hasone in edit method

2009-09-03 Thread Cronet
Thank you for responding. You're right. Very simple solution :) I thought, because it's a hasOne relationship cake gets this id automagically... On 3 Sep., 11:19, WebbedIT wrote: > If you want both models to update then you need the primary id of each > model in the form, if you pass no id f

Re: saveall for hasone in edit method

2009-09-03 Thread WebbedIT
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-

saveall for hasone in edit method

2009-09-02 Thread cronet
Hi there, i stuck in a problem which is perhaps obvious, but i didn't see the solution right now. It is a simple savell for a hasnone association. I try to edit the primary and secondary data in one form. But the secondary data creates always a new insert instead of updating it. I think the nami