I am trying to update one table fields with the relation in it. I am not updating the relation field, I am just updating the other fields of the table and I am getting this error:
“Cannot save entity with primitive collection property _private_geoRelations”.
FYI: I am trying to update this using Javascript API.
Thanks and lot. The only changes you made is passing the “Table_Name” directly instead of “$root.Classes.Table_Name” and I see that it works fine. May I know the reason or difference between these two?Thanks…
I’ve replaced $root.Classes.EmployerProfiles by this “EmployerProfiles” because I don’t know what is $root.Classes.EmployerProfiles in your case, looks like you are using Angular framework, and I suggested that $root.Classes.EmployerProfiles is a string with TableName.
After quick look at JS SDK docs I noticed undocumented feature, instead FunctionConstructor you can pass TableName as string in Backendless.Persistence.of(“TableName”) as well
So, we have two variants:
as string
Backendless.Persistence.of("TableName")
as function-contructor
function TableName(){ ... }
Backendless.Persistence.of(TableName)
Could you please show me what is $root.Classes.EmployerProfiles in your case, I mean how do you define the variable