generalise CRM_Event_Form_ManageEvent_Repeat::updateModeRecurringEntityForEvent and renamed it to updateModeLinkedEntity