             return entity
         }
     }
-
-
+    
+    
     open override func read(predicatedBy predicate: NSPredicate?) -> [Model] {
         return read(predicatedBy: predicate, orderedBy: nil)
     }
-
-
+    
+    
     open override func read(orderedBy field: String?,
                             ascending: Bool) -> [Model] {
         return read(predicatedBy: nil, orderedBy: field, ascending: ascending)
     }
-
-
+    
+    
     open override func read(predicatedBy predicate: NSPredicate?,
                             orderedBy field: String?,
                             ascending: Bool = true) -> [Model] {
         var entries = readFromRealm(predicate)
-
+        
         if let field = field {
             entries = entries.sorted(byKeyPath: field, ascending: ascending)
         }
-
+        
         return entries.map {
             let entity = Model()
             self.translator.fill(entity, fromEntry: $0)
             return entity
         }
     }
-
-
+    
+    
     override open func erase() throws {
         let results = readFromRealm()
         let entries: List<RealmModel> = List<RealmModel>()

        }
        return results.filter(predicate)
    }

    
    private func delete(_ entry: RealmModel) throws {
        try self.realm().write {
            cascadeDelete(entry)
        }
    }

    
    private func delete(_ entries: List<RealmModel>) throws {
        try self.realm().write {

        }
    }
    
    
    private func cascadeDelete(_ object: AnyObject?) {
        if let deletable = object as? CascadeDeletionProtocol {
            deletable.objectsToDelete.forEach { child in
                cascadeDelete(child)
            }
        }
        
        if let realmArray = object as? ListBase {
            for i in 0..<realmArray.count {
                let object = realmArray._rlmArray[UInt(i)]
                cascadeDelete(object)
            }
        }
        
        if let realmObject = object as? Object {
            self.realm().delete(realmObject)
        }
    }
    
    private func realm() -> Realm {
        return try! Realm(configuration: configuration)
    }
    
}
