Hi again, Yes, if you define another hasOne relationship you have to add another foreign key. Because of this, it is good to plan, write down the models and the relationships between models before starting coding. Besides adding another foreign key to an existing table is not too much hassle.
I think saveAll() will work fine, but experimenting with it will give you the best answer :) Baris On Sep 1, 4:37 pm, Preloader <[EMAIL PROTECTED]> wrote: > Hi Baris, > > thank you for your answer. > > Ok, in this case are you right, but the "Address" relationship was > just an example. > > Another thing: What if I add another objects, which have one Address? > - Everytime I do this I have to add another foreign key to the Address > table. > > My concerns about saveAll() ... hmmm ... the "automagic" setting of > the foreign key. But I think that should be no problem. I just have to > call the saveAll() method of the model which defines the hasOne, i > think ... have to try this. > > Regards, Christoph --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
