Skip to content

rename slot, relationship#59

Open
torstees wants to merge 1 commit into
mainfrom
relationship-name-collision
Open

rename slot, relationship#59
torstees wants to merge 1 commit into
mainfrom
relationship-name-collision

Conversation

@torstees

@torstees torstees commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

When trying to load the entire SQL Alchemy model to extract the DDL for schema generation, the slot, relationship, is causing a namespace collision inside the FamilyRelationship model with the SQLA's property with the same name, overriding the ORM functionality with a class member. This results in errors when you try to actually follow the relationships associated with that class.

This simply renames the slot, relationship, to relationship_type. The new name can be (almost) anything other than 'relationship'.

Closes #58

@torstees
torstees requested a review from RobertJCarroll July 9, 2026 16:02
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://include-dcc.github.io/common-access-model/pr-preview/pr-59/

Built to branch gh-pages at 2026-07-09 16:03 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FamilyRelationship.relation is causing SQLA issues

1 participant