Originally created by @jaddoescad on GitHub (Dec 17, 2016).
Hi, I'd like to start off by thanking you for this really awesome Library.
I am using this code to delete a user from coredata:
let friend: Friend = Static.datastack.fetchOne(
From(Friend),
Where("id", isEqualTo: "336360503408940")
)!
Static.datastack.beginSynchronous { (transaction) -> Void in
if let projectModel = transaction.fetchOne(From(Friend), Where("id == 336360503408940")) {
transaction.delete(projectModel)
}
transaction.commitAndWait()
}
However in your documentation, you mention that we can delete without fetching. I am really confused on how to do that. this is the code you provided for us.
let john: MyPersonEntity = // ...
CoreStore.beginAsynchronous { (transaction) -> Void in
transaction.delete(john)
transaction.commit()
}
What would go inside the declaration john in order to have the same effect on deleting.
Thank you
Originally created by @jaddoescad on GitHub (Dec 17, 2016).
Hi, I'd like to start off by thanking you for this really awesome Library.
I am using this code to delete a user from coredata:
```
let friend: Friend = Static.datastack.fetchOne(
From(Friend),
Where("id", isEqualTo: "336360503408940")
)!
Static.datastack.beginSynchronous { (transaction) -> Void in
if let projectModel = transaction.fetchOne(From(Friend), Where("id == 336360503408940")) {
transaction.delete(projectModel)
}
transaction.commitAndWait()
}
```
However in your documentation, you mention that we can delete without fetching. I am really confused on how to do that. this is the code you provided for us.
```
let john: MyPersonEntity = // ...
CoreStore.beginAsynchronous { (transaction) -> Void in
transaction.delete(john)
transaction.commit()
}
```
What would go inside the declaration john in order to have the same effect on deleting.
Thank you
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @jaddoescad on GitHub (Dec 17, 2016).
Hi, I'd like to start off by thanking you for this really awesome Library.
I am using this code to delete a user from coredata:
However in your documentation, you mention that we can delete without fetching. I am really confused on how to do that. this is the code you provided for us.
What would go inside the declaration john in order to have the same effect on deleting.
Thank you