Semprini / pyMDG

UML Model Driven Generation of schema, code, data and documentation.
Other
21 stars 10 forks source link

Sparx association naming source & dest swapped #13

Closed westpac-paul closed 3 years ago

westpac-paul commented 3 years ago

Since association defaults to object name, if a name is specified the source name should be applied to the destination object.


    # If it's an association to or from a multiple then pluralize the name
    if dest_element.get('name') is not None:
        association.source_name = dest_element.get('name')
    else:
...
    if source_element.get('name') is not None:
        association.destination_name = source_element.get('name')
    else:
...```