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

Tests and example for how to use relationship alias. #815

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cycledriver
Copy link

Needed to figure out how to use an alias to refer to the same table with 2 different attributes. Thought I would share share my learning by adding to the tutorial.

Copy link

📝 Docs preview for commit 9606fac at: https://2236fb7a.sqlmodel.pages.dev

Copy link

📝 Docs preview for commit daf8e90 at: https://537fb381.sqlmodel.pages.dev

Copy link

📝 Docs preview for commit 82e8655 at: https://4ab2c1a2.sqlmodel.pages.dev

Copy link

📝 Docs preview for commit 046ef20 at: https://10831b49.sqlmodel.pages.dev

When one object has more than one relationship
to the same foreign object, you need to use
`aliased` to differentiate between the relationships.
Copy link

github-actions bot commented Mar 2, 2024

📝 Docs preview for commit bd2d61a at: https://84f23520.sqlmodel.pages.dev

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.

None yet

2 participants