Backendless Support
 
Answered

Learner data doesn't want to save

Hi, I wonder why the data doesn't save correctly, I used the following code(see photos) to save learner data in a custom table on backendless. The table does not exists... As I understand the documentation the table must automatically be created with all the fields the Learner_Class has...

What may be the problem that all the fields is not created....? (I can use 5 tables. I am using 4).

Leave a Comment

Comments (4)

photo
1

Hi Rhonwen,

You should either add getX() methods to your class or make the fields public.

photo
1

It is really strange, because it only does it with the learner class. I have 3 other classes(following the same logic,syntax,access modifiers on the same place etc) but this particular class doesn't work...

I will change the access modifiers

photo
1

Hello,

Per documentation, class fields must be declared public or there must be public getter/setter methods for the fields you want to save in the database.

Regards,

Mark

photo
1

Hi Mark, Thank you for the help. Appreciated.