Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure relationship with foreign key #141

Open
4 tasks
jdkandersson opened this issue Jul 12, 2020 · 1 comment
Open
4 tasks

Configure relationship with foreign key #141

jdkandersson opened this issue Jul 12, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@jdkandersson
Copy link
Owner

jdkandersson commented Jul 12, 2020

As a user I want to define multiple relationships on a model pointing to the same referenced model so that I can have a construct such as primary and secondary supervisor of an employee.

Follow on from #139

  • The foreign key fully qualified name needs to be generated for a relationship
  • This needs to be added to the artefacts passed to the relationship facade
  • This needs to be used by the SQLAlchemy relationship constructor with the "foreign_keys" argument
  • A decision needs to be made about whether that parameter is allowed to be in the x-kwargs dictionary and which one to prioritise
@jdkandersson jdkandersson added the enhancement New feature or request label Jul 12, 2020
@jdkandersson jdkandersson added this to the Cleanup milestone Jul 12, 2020
@diogohudson
Copy link

Hi, community!
Is there any ETA for this to be delivered? Or maybe a workaround to get this working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants