Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rexmas committed Feb 14, 2016
1 parent eb81213 commit 3ec9d92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public class Company: Object {
public class CompanyMapping : RealmMapping {

public var adaptor: RealmAdaptor
public var primaryKeys: Array<CRMappingKey> {
return [ "uuid" ]
public var primaryKeys: Dictionary<String, CRMappingKey> {
return [ "uuid" : "data.uuid" ]
}

public required init(adaptor: RealmAdaptor) {
Expand All @@ -77,8 +77,8 @@ public class CompanyMapping : RealmMapping {

tomap.employees <- .Mapping("employees", employeeMapping) >*<
tomap.founder <- .Mapping("founder", employeeMapping) >*<
tomap.uuid <- "uuid" >*<
tomap.name <- "name" >*<
tomap.uuid <- "data.uuid" >*<
tomap.name <- "data.name" >*<
tomap.foundingDate <- "data.founding_date" >*<
tomap.pendingLawsuits <- "data.lawsuits.pending" >*<
context
Expand Down

0 comments on commit 3ec9d92

Please sign in to comment.