def mk_linked_association(m, r_assoc):
r_rel = one(r_assoc).R_REL[<NUM_LIT>]()<EOL>r_rgo = one(r_assoc).R_ASSR[<NUM_LIT>].R_RGO[<NUM_LIT>]()<EOL>source_o_obj = one(r_rgo).R_OIR[<NUM_LIT>].O_OBJ[<NUM_LIT>]()<EOL>def _mk_assoc(side1, side2):<EOL><INDENT>r_rto = one(side1).R_RTO[<NUM_LIT>]()<EOL>target_o_obj = one(r_rto).R_OIR[<NUM_LIT>].O_OBJ[<NUM_LIT>]()<EOL>source_ids, target_ids = _get_related_attributes(r_rgo, r_rto)<EOL>if side1.Obj_ID != side2.Obj_ID:<EOL><INDENT>source_phrase = target_phrase = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>source_phrase = side1.Txt_Phrs<EOL>target_phrase = side2.Txt_Phrs<EOL><DEDENT>m.define_association(rel_id=r_rel.Numb, <EOL>source_kind=source_o_obj.Key_Lett,<EOL>target_kind=target_o_obj.Key_Lett,<EOL>source_keys=source_ids,<EOL>target_keys=target_ids,<EOL>source_conditional=side2.Cond,<EOL>target_conditional=False,<EOL>source_phrase=source_phrase,<EOL>target_phrase=target_phrase,<EOL>source_many=side2.Mult,<EOL>target_many=False)<EOL><DEDENT>r_aone = one(r_assoc).R_AONE[<NUM_LIT>]()<EOL>r_aoth = one(r_assoc).R_AOTH[<NUM_LIT>]()<EOL>_mk_assoc(r_aone, r_aoth)<EOL>_mk_assoc(r_aoth, r_aone)<EOL>
Create pyxtuml associations from a linked association in BridgePoint.