Allow changing the entity just before it's saved via POST.