mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-12 04:10:36 +01:00
Compiler error: Extra argument in call #179
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 @kevinrenskers on GitHub (Oct 25, 2017).
This example comes pretty much straight from https://github.com/JohnEstropia/CoreStore#type-safe-corestoreobjects but it's not compiling for me.
It's weird because I see there are 2 versions of
fetchAll, one that accept an array and one that accepts a series of fetch clauses. It seems it's picking the array one for some reason?@kevinrenskers commented on GitHub (Oct 25, 2017):
And another compiler error from the same example:
@JohnEstropia commented on GitHub (Oct 29, 2017):
You need to use
orderByfirst beforeascending:You can use the simpler keypath syntax as well:
@kevinrenskers commented on GitHub (Oct 29, 2017):
Yea I’m indeed using
Gift.orderBy(ascending: { $0.points })but it needs to be fixed in your readme :)That other syntax looks nice, I don’t think it’s in the readme either? Other things related to CoreStoreObject are missing from the readme too, like the delete rules on relationships, adding an index to a property, etc.
I can send a PR your way fixes some changes.