cleaning of hasManys after save