         builder += "}"
         return builder
     }
-    
-    
+
+
     fileprivate func generateDeleteValueTypeWrappers(_ entity: StructDeclaration, variables: [InstanceVariable]) -> CodeBuilder {
         var builder = CodeBuilder()
         builder += "\(entity.accessibility.sourceName) static func torch_delete(managedObject object: \(getManagedObjectName(entity.name))" +

        builder += "}"
        return builder
    }
    
    
    fileprivate func generateUpdateManagedObject(_ entity: StructDeclaration, variables: [InstanceVariable]) -> CodeBuilder {
        var builder = CodeBuilder()
        builder += "\(entity.accessibility.sourceName) mutating func torch_update(managedObject object: \(getManagedObjectName(entity.name)), database: Torch.Database) {"

                    } else if isRealmOptional(variable) {
                        $0 += "\(accessibility) var \(getPrefixedPropertyName(variable.name)) = RealmSwift.RealmOptional<\(variable.rawType)>()"
                    } else if isTorchEntity(variable) {
                        $0 += "@objc \(accessibility) dynamic var \(getPrefixedPropertyName(variable.name)): \(getManagedObjectType(variable.rawType))?"
                    } else if variable.isOptional {
                        $0 += "@objc \(accessibility) dynamic var \(getPrefixedPropertyName(variable.name)): \(variable.type)"
                    } else {
                        $0 += "@objc \(accessibility) dynamic var \(getPrefixedPropertyName(variable.name)) = \(variable.type)()"
                    }
                }
            }

            $0 += ""
            $0 += "\(accessibility) override static func primaryKey() -> String? {"
            $0.nest("return \"id\"")
