nickdunn/entity_diagram — Issue #6: Duplicate relationships with SSM
Author: brendo
Created: 2011-11-03 06:11:26+00:00
State: open

I don't know when SSM fixed/changed how it handled relationships, but [these lines](https://github.com/nickdunn/entity_diagram/blob/master/extension.driver.php#L136-139) cause two relationships to be created on the resulting diagram.

Those lines seem to handle the SSM relationship correctly (Field -> Section), whereas the previous code block draws a Field -> Field relationship (which isn't accurate).

I think the logic here so be 'if/else' with the first check determining if `$field` is SSM and the `else` logic be the section association block.