automatically save connected entities