Apparently you need to recompute the changeset yourself for the changes to take effect:
$em = $args->getEntityManager();
$uow = $em->getUnitOfWork();
$meta = $em->getClassMetadata(get_class($entity));
$uow->recomputeSingleEntityChangeSet($meta, $entity);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…