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

Support more complex join conditions for relationships #53

Open
danielrearden opened this issue May 17, 2020 · 0 comments
Open

Support more complex join conditions for relationships #53

danielrearden opened this issue May 17, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@danielrearden
Copy link
Owner

The API currently only supports joining two models using a single foreign key. This can be limiting if the relationship needs to support additional join conditions. For example, if using a closure table and wanting to join based on a particular depth. Or applying arbitrary filters based on the target table's column values (like having an activeCustomers field on store). The current workaround is to utilize inline views to create separate models for these use-cases, but this is not ideal. This might warrant a bigger change to the existing API (moving away from the "from" and "to" syntax entirely).

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

1 participant