Replies: 1 comment
-
I resolve this by using with and combine condition in the indexQuery |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have model
Order
have a relationship one to many withOrderItem
.OrderItem
belongs toRoom
andRoom
belongs toBuilding
.In the Resource of
Order
I have a custom column that displaysOrderItem
ofOrder
.I have a filter
BookingDate
which is equal toOrderItem.booking_date
andBuildingId
which is equal toRoom.building_id
.The problem is when I apply both filters. If just one condition matches then I still get that
Order
and still print theOrderItem
that only matches one condition, not both.I tried to use join in indexQuery instead and it seems not to work also.
Beta Was this translation helpful? Give feedback.
All reactions