So my question is how do you write your realm object so it creates a table in back endless without any issues?
Right now if I make a realm object called:
class Comment: Object {
dynamic var comment : String?
}
I then tried to save a comment by doing:
//Store a comment
let comment = Comment()
comment.comment = “Hellow World”
Types.tryblock({
Backendless().persistenceService.of(comment.ofClass()).save(comment)
}, catchblock: {
err in
print(“Err”)
})
I get something like,
RLMStandalone_Comment class in the back endless table and it has a “Classname” field which is empty.
So how does one go about writing a class that can be suitable for Backendless. I read in the forum here that it does map realm objects. If so, how?
Thanks!