Fixed new ID not being updated into the entity object after insert, breaking update-after-insert flow.