If I do getLastInsertId() immediately after a save(), it works, but otherwise it does not. This is demonstrated in my controller:
getLastInsertId()
save()
f
When you use save(), the last insert ID is set to the model’s $id property. So:
$id
if ($this->Model->save()) { printf('Last insert ID was %s', $this->Model->id); }