Is getLastInsertID and Model->id same? And which one can happen concurrency problem ?
$this->Model->save($this->data);
__thisFunctionTakesAVeryLongTimeToExecute(); //function 1
$insertId = $this->Model->getLastInsertId();
Does getLastInsertId() return the ID from the data I've saved 2 lines above. Or does it return the latest ID that's created?
I mean what happen if when the function 1 (__thisFunctionTakesAVeryLongTimeToExecute();) execute another user do an another save. then which id will i get?