var index = 0 dynamic var enable = true dynamic var title = "" dynamic var snippets = RLMArray(objectClassName: CPYSnippet.className()) } class CPYSnippet: RLMObject { // MARK: - Properties dynamic var index = 0 dynamic var enable = true dynamic var title = "" dynamic var content = "" dynamic var folder: CPYFolder? { return linkingObjectsOfClass("CPYFolder", forProperty: "snippets").first as? CPYFolder } }