Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

update not work #25

Closed
huanghe810229530 opened this issue Jul 25, 2016 · 1 comment
Closed

update not work #25

huanghe810229530 opened this issue Jul 25, 2016 · 1 comment

Comments

@huanghe810229530
Copy link

huanghe810229530 commented Jul 25, 2016

class func primaryKeys() -> Set<String> {
    return ["id"]
}

static func save(array: [DisModel]) {
    let database = SwiftyDB(databaseName: "dogtopia")
//        database.deleteObjectsForType(DisModel.self)
    database.addObjects(array, update: true)
 }

8ba1f7b9-2de9-4b1a-9192-4fc2e749f5ae

As above, even if I put the update parameter is true, add object database is to be repeated.

@huanghe810229530
Copy link
Author

it's my wrong.

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

No branches or pull requests

1 participant