Forum Discussion
dlindinger
9 years agoCreator I
In my 11sp6 out of the box environment, the onAfterVersion event is fired when revision B is made from an ECO. The context item of the onAfterVersion event is the old generation (rev A), but your method can retrieve the latest generation based on config_id. This is the approach that PE_AffectedItemFloat uses (also hooked to onAfterVersion). Once you have the new generation, then you can delete the relationships.
As you said, your method will need compare major_revs between generations to determine if it should delete the relationships.
Dennis