If I do getLastInsertId() immediately after a save(), it works, but otherwise it does not. This is demonstrated in my controller:
getLastInsertId()
save()
f
In CakePHP you can get it by: Model::getInsertID() //Returns the ID of the last record this model inserted. Model::getLastInsertID() //Alias to getInsertID().