Hello Cake Folk,
    I have been trying to determine if Model::getLastInsertID is
thread safe. I'm looking to get the id of the record that I inserted
with the statement (I'm using save() for inserting, not just
updating):

$this->Thing->save($this->data)

I'd like to be able to use the ID of this record without retrieving it
again. I would like to continue to use the auto-increment feature of
my database.

Obviously, my concern here is having forty people all click a create
button at the same time.


Thanks for any light you can shed.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to