added server side checking of the 2nd primary relationship data if the class has been removed to remove all oothere data for primary relationship 2