mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-13 23:23:29 +01:00
Clause building via keypaths does not work for CoreStoreObject subclasses #291
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 @manmal on GitHub (Oct 18, 2019).
Hi, first of all, thanks for the great work. This is one of the cleanest and most innovative Swift libraries I've seen.. e.g. the keypath handling is mind boggling :)
I'm having an issue using keypaths for
Whereclauses on entity subclasses (theAnimal>Dogsituation), namely when querying fields that reside in the super object. This affects not only Where clauses, but for simplicity I picked this example. I isolated it and made a demo project demonstrating the issue. But I think you just need this piece of code:I'm using Xcode 11 with Swift 5.
@JohnEstropia commented on GitHub (Oct 18, 2019):
@manmal Yes, this is a known limitation with how
KeyPaths work.For these cases, you can use the closure version instead:
@manmal commented on GitHub (Oct 18, 2019):
Thank you @JohnEstropia !