Skip to content

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

@GalCohen

Description

@GalCohen

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions