mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Fetch where relationship is contained in array #349
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheJustikar on GitHub (Dec 16, 2020).
I am trying to fetch all entities from the class
MatchwhoseDisciplineis contained in an array of disciplines.Here is the code for fetching that is not working:
The compiler error I am getting is:
Here is the Match class:
Here is the Disciple class:
What exactly am I doing wrong here?
@TheJustikar commented on GitHub (Dec 16, 2020):
I also asked this question on stackoverflow:
https://stackoverflow.com/questions/65167443/corestore-fetch-where-relationship-is-contained-in-array
@JohnEstropia commented on GitHub (Dec 16, 2020):
@TheJustikar Hi, thanks for reporting this. It looks like there's a missing overload within the
Whereoperators.I'll fix this in a coming update, but for now you can workaround it using
Stringkey paths:@JohnEstropia commented on GitHub (Dec 16, 2020):
You can also try the "matches" operator:
@Tykhonkov commented on GitHub (Dec 5, 2022):
would be great to add this example in the documentation