Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GalCohen opened this issue Feb 7, 2016 · 1 comment
Open

Comments

@GalCohen
Copy link

GalCohen commented Feb 7, 2016

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 GalCohen changed the title persistenceService.find() fails because of namespaced swift objects persistenceService.find() fails because of namespaced swift objects? Feb 7, 2016
@GalCohen
Copy link
Author

GalCohen commented Mar 8, 2016

@slavavdovichenko bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant