Access a relationship to make a filter with it #855
Unanswered
BenOussama180
asked this question in
Q&A
Replies: 1 comment 1 reply
-
How do you think about making the boolean filter? using makeBooleanFilter ? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
so i have Links table and orders table with link has many orders by foreign key link_id in orders table.
i have this in my Link Model :
Datasurce :
but since i dont perform a ->get() in my datasource i cant access the $link->is_on_order since i want to make a Boolean filter with it to see if the link has been ordered by the current customer or no, ( doing ->get() makes table so sloow its not an option ) , how can i solve this ? @luanfreitasdev
Beta Was this translation helpful? Give feedback.
All reactions