Missing $ in README examples #390

Closed
opened 2025-12-29 15:30:47 +01:00 by adam · 1 comment
Owner

Originally created by @idsky2 on GitHub (May 2, 2022).

Your readme has
let newPerson = dataStack.fetchOne(From<Person>.where(\.name == "John"))
I'm just figuring out CoreStore but I think that should now be
let newPerson = dataStack.fetchOne(From<Person>.where(\.$name == "John"))
otherwise I get an error that my class needs to inherit from NSManagedObject.

Originally created by @idsky2 on GitHub (May 2, 2022). Your readme has `let newPerson = dataStack.fetchOne(From<Person>.where(\.name == "John"))` I'm just figuring out CoreStore but I think that should now be `let newPerson = dataStack.fetchOne(From<Person>.where(\.$name == "John"))` otherwise I get an error that my class needs to inherit from NSManagedObject.
adam closed this issue 2025-12-29 15:30:47 +01:00
Author
Owner

@JohnEstropia commented on GitHub (May 2, 2022):

Thanks. Both syntaxes are correct depending if you're using CoreStoreObject or NSManagedObject subclasses. But since the rest of the README uses the propertyWrapper syntax, I'll try to make it more consistent.

@JohnEstropia commented on GitHub (May 2, 2022): Thanks. Both syntaxes are correct depending if you're using `CoreStoreObject` or `NSManagedObject` subclasses. But since the rest of the README uses the propertyWrapper syntax, I'll try to make it more consistent.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#390