diff --git a/LeStorage/SyncedCollection.swift b/LeStorage/SyncedCollection.swift index 09b55f5..fc493d4 100644 --- a/LeStorage/SyncedCollection.swift +++ b/LeStorage/SyncedCollection.swift @@ -290,11 +290,11 @@ public class SyncedCollection: BaseCollection, SomeSynced } /// Deletes the instance in the collection without synchronization - func deleteNoSync(instance: T) { + public func deleteNoSync(instance: T, cascading: Bool = false) { defer { self.setChanged() } - self.deleteItem(instance, shouldBeSynchronized: false) + self.deleteItem(instance, shouldBeSynchronized: cascading) } /// Deletes the instance in the collection without synchronization