On Dec 26, 2007 10:07 AM, Robert Sosinski <[EMAIL PROTECTED]> wrote: > > Hello again, > > I am having this problem. I have a Thread model and a Post model. > What is interesting is whenever I have a post that has the same id as > the thread_id (so, id = 4 and thread_id = 4), cake will no longer add > new records. It will only overwrite the same record over and over > again (like it is editing it). > > Anyone else have this problem? > > Thanks.
I would suggest looking at two things: 1) make sure your associations are set properly 2) make sure you do $this->ModelNameHere->create() before you do a save. That way you can insure a new record is supposed to be created. I also agree with davidgregan's suggestion about making sure you have the id field for your tables either an auto-increment field or generate your own unique ID's Hope that helps. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
