mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-15 05:33:31 +01:00
added demo for observing changes to a single managed object
This commit is contained in:
@@ -66,7 +66,7 @@ public final class SynchronousDataTransaction: BaseDataTransaction {
|
||||
:param: object the NSManagedObject type to be edited
|
||||
:returns: an editable proxy for the specified NSManagedObject.
|
||||
*/
|
||||
public override func fetch<T: NSManagedObject>(object: T) -> T? {
|
||||
public override func fetch<T: NSManagedObject>(object: T?) -> T? {
|
||||
|
||||
HardcoreData.assert(!self.isCommitted, "Attempted to update an entity of type \(typeName(object)) from an already committed \(typeName(self)).")
|
||||
|
||||
@@ -78,7 +78,7 @@ public final class SynchronousDataTransaction: BaseDataTransaction {
|
||||
|
||||
:param: object the NSManagedObject type to be deleted
|
||||
*/
|
||||
public override func delete(object: NSManagedObject) {
|
||||
public override func delete(object: NSManagedObject?) {
|
||||
|
||||
HardcoreData.assert(!self.isCommitted, "Attempted to delete an entity of type \(typeName(object)) from an already committed \(typeName(self)).")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user