Update the entity object