What is the difference in Model::getLastInsertID() and Model::getInsertID() ?
Also, the ID that returns is it the record I just saved or the last one in the database. I'm just concern that if two users are saving records at the same time I'll get the wrong ID. This might some very strange but I need to save a new record, get its ID so I can insert the ID it into a different Model that has relations. I can seem to figure out how to save both at the same time in the same action unless I save one Model A than get its ID than save the other Model B with the Model A's ID. Sorry if it sounds confusing but I'm getting myself confused. I guess all I need to know is what is the difference between getLastInsertID() and getInsertID() and if it only brings back the last ID that the current action/request made or its the last ID from the database. Thanks, Buddy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
