Customize Relation To Filter Fields With Logic #8062
Unanswered
A-Corregidor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
Is there a way to customize a relation so some filter is always applied?
The particular case is the following:
I would like to create a relation (currentOrganization) that returns the current company filtering by its starDate/endDate columns. Is that possible? Should I create a organizationId on User and update it to match the current status of CompaniesHistory? Should I create a custom method to query the DB and get that currentOrganization?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions