Backendless / iOS-Samples

Contains sample projects demonstrating the usage of various Backendless 3.X API and functionality
25 stars 14 forks source link

persistenceService.find() fails because of namespaced swift objects? #2

Open GalCohen opened 8 years ago

GalCohen commented 8 years ago

Hi,

I want to fetch all the options in one of my tables. I'm trying to do something along the lines of:

Backendless.sharedInstance().persistenceService.find(Friends.ofClass(), dataQuery: nil, response: { (collection) -> Void in
            print(collection)
        }) { (fault) -> Void in
            print(fault)

        }

However, the error block fires and I get a Fault object: FAULT = '0000' [Object ID is not exist] <>

I believe it's because Friends.ofClass() evaluates to something namespaced, such as MyAppName.Friends rather than simply Friends.

Any ideas on how to get around this? Short of renaming the tables in the backend... or rewriting on classes in objective-c... ?

Thanks!

GalCohen commented 8 years ago

@slavavdovichenko bump.